Skip to content

Commit cd446ce

Browse files
committed
restart walleye upon None image
1 parent 0673263 commit cd446ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PiSideCode/init.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ def log_performance(walleye_data):
215215

216216
for idx, val in enumerate(connections.values()):
217217
if not val and walleye_data.robot_publisher.get_connection_value(idx):
218-
logger.info("Camera disconnected")
218+
logger.critical(f"Camera disconnected! Quitting!!")
219+
raise RuntimeError("A camera has disconnected. Restarting wallEYE!!")
220+
219221

220222
walleye_data.robot_publisher.set_connection_value(idx, val)
221223

0 commit comments

Comments
 (0)