Skip to content
Snippets Groups Projects
Commit 9811716b authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: minor logging and fix

parent c889e010
No related branches found
No related tags found
1 merge request!22Release 0.3
......@@ -195,8 +195,9 @@ class Crawler(object):
logger.debug("{} matched\n{}.".format(
Cfood.__name__,
item))
except DataInconsistencyError:
pass
except DataInconsistencyError as e:
logger.debug(traceback.format_exc())
logger.debug(e)
except Exception as e:
logger.debug("Failed during execution of {}!".format(
Cfood.__name__))
......@@ -279,8 +280,9 @@ class Crawler(object):
cfood.update_identifiables()
self.push_identifiables_to_CaosDB(cfood)
except DataInconsistencyError:
pass
except DataInconsistencyError as e:
logger.debug(traceback.format_exc())
logger.debug(e)
except Exception as e:
logger.info("Failed during execution of {}!".format(
cfood.__class__.__name__))
......
......@@ -87,7 +87,11 @@ def win_path_list_converter(val):
checks whether the value looks like a list of windows paths and converts
it to posix paths
"""
if pd.isnull(val):
return []
paths = val.split(",")
return [win_path_converter(p) for p in paths]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment