mirror of https://github.com/m-labs/artiq.git
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:
|
ConnectionRefusedError, ConnectionResetError) as e:
|
||||||
logger.warning("Connection to master failed (%s: %s)",
|
logger.warning("Connection to master failed (%s: %s)",
|
||||||
e.__class__.__name__, str(e))
|
e.__class__.__name__, str(e))
|
||||||
|
except Exception as e:
|
||||||
|
logger.exception(e)
|
||||||
else:
|
else:
|
||||||
logger.warning("Connection to master lost")
|
logger.warning("Connection to master lost")
|
||||||
logger.warning("Retrying in %.1f seconds", self.retry)
|
logger.warning("Retrying in %.1f seconds", self.retry)
|
||||||
|
|
Loading…
Reference in New Issue