From f3bc8b5ffc01fec893b7dbb61892ce60a2252913 Mon Sep 17 00:00:00 2001
From: Felix Kleinert <f.kleinert@fz-juelich.de>
Date: Tue, 17 Aug 2021 14:24:21 +0200
Subject: [PATCH] update error capt when station is removed

---
 mlair/run_modules/pre_processing.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mlair/run_modules/pre_processing.py b/mlair/run_modules/pre_processing.py
index e817d2a1..db9e9e94 100644
--- a/mlair/run_modules/pre_processing.py
+++ b/mlair/run_modules/pre_processing.py
@@ -327,8 +327,8 @@ def f_proc(data_handler, station, name_affix, store, **kwargs):
     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))}")
-        logging.debug(f"detailed information for removal of station {station}: {traceback.format_exc()}")
+            #f"remove station {station} because it raised an error: {e} -> {' | '.join(f_inspect_error(formatted_lines))}")
+            f"remove station {station} because it raised an error: {e} -> {' | '.join(formatted_lines)}")
         res = None
     return res, station
 
-- 
GitLab