Commit 51932e28 authored by Guillaume's avatar Guillaume
Browse files

correctifs

parent f3d193da
......@@ -69,10 +69,12 @@ class DRSParser(object):
# Vocabulary error handling.
except TemplateParsingError as e:
print(e)
return None
# Key error handling. Due to wrong number of facets in comparison with the path parts.
except KeyError as e:
print(e)
return None
def get_facets_from_filename(self, basename):
"""
......@@ -107,10 +109,12 @@ class DRSParser(object):
# Key error handling. Due to wrong number of facets in comparison with the filename parts.
except KeyError as e:
print(e)
return None
# Key error handling. Due to wrong number of facets in comparison with the filename parts.
except KeyError as e:
print(e)
return None
# Deserialize filename and add time range facets.
facets = dict(zip(self.file_keys[:-1], basename.split('_')[:-1]))
......
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