mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
parent
ebbdce1f42
commit
5236b720ab
@ -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…
x
Reference in New Issue
Block a user