Browse Source

Change Connection Exceptions

pull/2/head
Jxck-S 4 years ago
parent
commit
99cb32426c
  1. 2
      defADSBX.py

2
defADSBX.py

@ -21,7 +21,7 @@ def pullADSBX(planes):
data = response.text
data = json.loads(data)
failed = False
except (requests.HTTPError, requests.ConnectionError, requests.Timeout, IncompleteRead) as error_message:
except (requests.HTTPError, requests.Timeout, IncompleteRead, ConnectionError, ConnectionResetError) as error_message:
print("ADSBX Connection Error")
print(error_message)
failed = True

Loading…
Cancel
Save