Skip to content

Commit 1664246

Browse files
committed
Catch RecursionError, mostly when debugging
1 parent 1e23658 commit 1664246

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def shutdown(event):
126126

127127
try:
128128
self.device_client.run(once=False)
129-
except device.DeviceError:
129+
except (device.DeviceError, RecursionError):
130130
_LOGGER.exception("Failed to read data, attempting to recover")
131131
self.device_client.close()
132132
self._fails += 1

0 commit comments

Comments
 (0)