Interrupt fix

This commit is contained in:
Artem30801
2019-01-20 12:28:31 +03:00
parent 1549746da2
commit aef815d8e3

View File

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