Interrupt fix

This commit is contained in:
Artem30801
2019-01-20 12:19:21 +03:00
parent b300db8601
commit 1549746da2

View File

@@ -202,7 +202,8 @@ try:
response = COPTER_ID
send_all(bytes(form_command("response", response)))
print("Request responded with:", response)
except InterruptedError:
print("Interrupted")
except socket.error as e:
print("Connection lost due error:", e)
print("Reconnecting...")