mirror of
https://github.com/home-assistant/core.git
synced 2025-08-08 23:25:11 +02:00
committed by
Fabian Affolter
parent
ebbdce1f42
commit
5236b720ab
@@ -117,9 +117,7 @@ class OctoPrintAPI(object):
|
||||
self.job_error_logged = False
|
||||
self.printer_error_logged = False
|
||||
return response.json()
|
||||
except (requests.exceptions.ConnectionError,
|
||||
requests.exceptions.HTTPError,
|
||||
requests.exceptions.ReadTimeout) as conn_exc:
|
||||
except Exception as conn_exc: # pylint: disable=broad-except
|
||||
log_string = "Failed to update OctoPrint status. " + \
|
||||
" Error: %s" % (conn_exc)
|
||||
# Only log the first failure
|
||||
|
Reference in New Issue
Block a user