From 7c91c343ecc16c404dcf6544ba29f94c5d54fe50 Mon Sep 17 00:00:00 2001 From: leufen1 <l.leufen@fz-juelich.de> Date: Mon, 23 Nov 2020 17:22:16 +0100 Subject: [PATCH] added additional error handler during station check --- mlair/run_modules/pre_processing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mlair/run_modules/pre_processing.py b/mlair/run_modules/pre_processing.py index 6548daa5..c1f6eeb0 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 -- GitLab