ruff: Fix RSE102 Unnecessary parentheses on raised exception.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-02-03 17:07:20 -08:00
committed by Tim Abbott
parent 3099487bc3
commit da3cf5ea7a
36 changed files with 101 additions and 101 deletions

View File

@@ -50,7 +50,7 @@ class InvalidPlatformError(Exception):
@cache_with_key(lambda platform: f"download_link:{platform}", timeout=60 * 30)
def get_latest_github_release_download_link_for_platform(platform: str) -> str:
if platform not in PLATFORM_TO_SETUP_FILE:
raise InvalidPlatformError()
raise InvalidPlatformError
latest_version = get_latest_github_release_version_for_repo("zulip-desktop")
if latest_version: