forked from M-Labs/artiq
influxdb_schedule: Handle all exceptions
This commit is contained in:
parent
1fb317778a
commit
7ac8feea19
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue