Skip to content

Commit 400269b

Browse files
committed
one example found, fixed
1 parent 91db2f0 commit 400269b

File tree

1 file changed

+1
-1
lines changed
  • MEMENTO/Memento_itsaSNAP_Capture_Cam

1 file changed

+1
-1
lines changed

MEMENTO/Memento_itsaSNAP_Capture_Cam/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def capture_send_image():
134134
capture_send_image()
135135

136136
time.sleep(0.1)
137-
except MQTT.MMQTTException as mqtt_error:
137+
except (MQTT.MMQTTException, MQTT.MMQTTStateError) as mqtt_error:
138138
print(f"MQTT Error: {mqtt_error}")
139139
time.sleep(5)
140140
print("Attempting to reconnect...")

0 commit comments

Comments
 (0)