parent
ebbdce1f42
commit
5236b720ab
1 changed files with 1 additions and 3 deletions
|
@ -117,9 +117,7 @@ class OctoPrintAPI(object):
|
||||||
self.job_error_logged = False
|
self.job_error_logged = False
|
||||||
self.printer_error_logged = False
|
self.printer_error_logged = False
|
||||||
return response.json()
|
return response.json()
|
||||||
except (requests.exceptions.ConnectionError,
|
except Exception as conn_exc: # pylint: disable=broad-except
|
||||||
requests.exceptions.HTTPError,
|
|
||||||
requests.exceptions.ReadTimeout) as conn_exc:
|
|
||||||
log_string = "Failed to update OctoPrint status. " + \
|
log_string = "Failed to update OctoPrint status. " + \
|
||||||
" Error: %s" % (conn_exc)
|
" Error: %s" % (conn_exc)
|
||||||
# Only log the first failure
|
# Only log the first failure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue