diff --git a/mlair/run_modules/pre_processing.py b/mlair/run_modules/pre_processing.py index 6548daa5aafd3bb0dc7e26d066d258c42bb8d875..c1f6eeb054eb2c0a90425e08e8a170983d8ae633 100644 --- a/mlair/run_modules/pre_processing.py +++ b/mlair/run_modules/pre_processing.py @@ -287,6 +287,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): + except (AttributeError, EmptyQueryResult, KeyError) as e: + logging.info(f"remove station {station} because it raised an error: {e}") res = None return res, station