diff --git a/mlair/run_modules/pre_processing.py b/mlair/run_modules/pre_processing.py index c1f6eeb054eb2c0a90425e08e8a170983d8ae633..68d1b7cba78fbab54f4db2b969b92c9d703acc4a 100644 --- a/mlair/run_modules/pre_processing.py +++ b/mlair/run_modules/pre_processing.py @@ -7,6 +7,7 @@ import logging import os from typing import Tuple import multiprocessing +import requests import numpy as np import pandas as pd @@ -287,7 +288,7 @@ def f_proc(data_handler, station, name_affix, store, **kwargs): try: res = data_handler.build(station, name_affix=name_affix, store_processed_data=store, **kwargs) - except (AttributeError, EmptyQueryResult, KeyError) as e: + except (AttributeError, EmptyQueryResult, KeyError, requests.ConnectionError) as e: logging.info(f"remove station {station} because it raised an error: {e}") res = None return res, station