mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-17 00:23:14 +00:00
comfy runner: catch requests exceptions appropriately
This commit is contained in:
@@ -92,7 +92,7 @@ args = parse_args()
|
||||
def get_queued_jobs_count(server_address):
|
||||
try:
|
||||
response = requests.get(f"http://{server_address}/queue", timeout=5)
|
||||
except requests.exceptions.BaseException:
|
||||
except requests.exceptions.RequestException:
|
||||
print("Error while checking queue")
|
||||
return None
|
||||
queue_json = response.json()
|
||||
|
||||
Reference in New Issue
Block a user