diff --git a/monitor.py b/monitor.py index 1875aea..e1c3595 100755 --- a/monitor.py +++ b/monitor.py @@ -207,7 +207,7 @@ def update(station_id: int): lines=lines_filter ) ) - except requests.exceptions.HTTPError as e: + except (requests.exceptions.HTTPError, requests.exceptions.ConnectionError) as e: print("Could not get the data: " + str(e)) return None