We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cd0d2c commit 0697b74Copy full SHA for 0697b74
1 file changed
brainframe/api/stubs/zone_statuses.py
@@ -58,6 +58,12 @@ def zone_status_iterator():
58
message = "Incomplete packet while attempting to read " \
59
"from zone status iterator"
60
raise bf_errors.ServerNotReadyError(message) from exc
61
+ except requests.exceptions.RequestException as exc:
62
+ message = "A network exception occurred while " \
63
+ "communicating with the BrainFrame server"
64
+ new_exc = bf_errors.ServerNotReadyError(message)
65
+ new_exc.__cause__ = exc
66
+ raise bf_errors.ServerNotReadyError(message)
67
68
if packet == b'':
69
continue
0 commit comments