Removed invalid exception

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2021-03-15 14:12:56 +00:00
parent dafcfc6464
commit 506f7d0b9f

View file

@ -129,7 +129,7 @@ def api_send_status(name, status, api, token):
else:
print("Warning: Unable to send status '" + status + "' for tile '" + name + "'. Trying again in 60 seconds")
sleep(60)
except (ConnectionError, ProtocolError, OSError, IOError):
except (ConnectionError, OSError, IOError):
print("Warning: Unable to send status " + status + " for tile " + name + ". Trying again in 60 seconds")
sleep(60)
@ -180,7 +180,7 @@ def api_get_job(action, api, token, none_exit=True):
sleep(60)
ret = api_get_job(action, api, token, none_exit)
return ret
except (ConnectionError, ProtocolError, OSError, IOError):
except (ConnectionError, OSError, IOError):
print("Unable to get job. Retrying in 60 seconds...")
sleep(60)
ret = api_get_job(action, api, token, none_exit)
@ -223,6 +223,6 @@ def api_get_status(name, api, api_token):
else:
print("ERROR: Unable to get status.")
sys.exit(1)
except (ConnectionError, ProtocolError, OSError, IOError):
except (ConnectionError, OSError, IOError):
print("ERROR: Unable to get status.")
sys.exit(1)