diff --git a/mlair/run_modules/pre_processing.py b/mlair/run_modules/pre_processing.py index d50f6f9ab7abcbe61259af8a880f24b01290661b..d21f8920b92ad9448b1adf135b99362751f8165f 100644 --- a/mlair/run_modules/pre_processing.py +++ b/mlair/run_modules/pre_processing.py @@ -351,7 +351,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, requests.ConnectionError, ValueError) as e: + except (AttributeError, EmptyQueryResult, KeyError, requests.ConnectionError, ValueError, IndexError) as e: formatted_lines = traceback.format_exc().splitlines() logging.info( f"remove station {station} because it raised an error: {e} -> {' | '.join(f_inspect_error(formatted_lines))}")