forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 2 additions and 0 deletions

View File

@ -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)