Commit 021c1e42 authored by lukas leufen's avatar lukas leufen

included requests connectionerror

parent 7c91c343
Pipeline #52943 failed with stages
in 7 minutes and 20 seconds
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment