mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
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:
committed by
Tim Abbott
parent
5ae5fe45ff
commit
6c592ce974
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user