From 021c1e426e6dc95ad3595a8dcfc91c467e667276 Mon Sep 17 00:00:00 2001
From: leufen1 <l.leufen@fz-juelich.de>
Date: Mon, 23 Nov 2020 18:00:00 +0100
Subject: [PATCH] included requests connectionerror

---
 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 c1f6eeb0..68d1b7cb 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
-- 
GitLab