fix 404 handler

This commit is contained in:
whjms
2023-03-09 17:19:38 -05:00
parent afcdc724aa
commit b5000b35d9
2 changed files with 2 additions and 2 deletions

View File

@@ -422,7 +422,7 @@ class ImportBuffer:
status = err.status_code
print(f"[import] Got {status} on request to club :^(")
message = f"Club responded with {status}"
if status == "404":
if status == 404:
message = f"Prompt not found for ID {club_id}"
show_error_notification("Error loading prompt", message)
return

View File

@@ -16,7 +16,7 @@ class ImportData:
class RequestFailed(Exception):
def __init__(self, status_code: str) -> None:
def __init__(self, status_code: int) -> None:
self.status_code = status_code
super().__init__()