ruff: Fix N818 exception name should be named with an Error suffix.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-11-17 00:30:48 -08:00
committed by Tim Abbott
parent 5ae5fe45ff
commit 6c592ce974
110 changed files with 507 additions and 507 deletions

View File

@@ -43,14 +43,14 @@ PLATFORM_TO_SETUP_FILE = {
}
class InvalidPlatform(Exception):
class InvalidPlatformError(Exception):
pass
@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 InvalidPlatform()
raise InvalidPlatformError()
latest_version = get_latest_github_release_version_for_repo("zulip-desktop")
if latest_version: