mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
fix 404 handler
This commit is contained in:
@@ -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
|
||||
|
@@ -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__()
|
||||
|
||||
|
Reference in New Issue
Block a user