Skip to content
Snippets Groups Projects
Commit 021c1e42 authored by leufen1's avatar leufen1
Browse files

included requests connectionerror

parent 7c91c343
No related branches found
No related tags found
3 merge requests!226Develop,!225Resolve "release v1.2.0",!195Resolve "Parallel station check"
Pipeline #52943 failed
...@@ -7,6 +7,7 @@ import logging ...@@ -7,6 +7,7 @@ import logging
import os import os
from typing import Tuple from typing import Tuple
import multiprocessing import multiprocessing
import requests
import numpy as np import numpy as np
import pandas as pd import pandas as pd
...@@ -287,7 +288,7 @@ def f_proc(data_handler, station, name_affix, store, **kwargs): ...@@ -287,7 +288,7 @@ def f_proc(data_handler, station, name_affix, store, **kwargs):
try: try:
res = data_handler.build(station, name_affix=name_affix, store_processed_data=store, res = data_handler.build(station, name_affix=name_affix, store_processed_data=store,
**kwargs) **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}") logging.info(f"remove station {station} because it raised an error: {e}")
res = None res = None
return res, station return res, station
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment