2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

influxdb_schedule: Handle all exceptions

This commit is contained in:
Charles Baynham 2019-09-05 16:34:39 +01:00 committed by Robert Jördens
parent 1fb317778a
commit 7ac8feea19

View File

@ -194,6 +194,8 @@ class MasterReader(TaskObject):
ConnectionRefusedError, ConnectionResetError) as e:
logger.warning("Connection to master failed (%s: %s)",
e.__class__.__name__, str(e))
except Exception as e:
logger.exception(e)
else:
logger.warning("Connection to master lost")
logger.warning("Retrying in %.1f seconds", self.retry)