Skip to content

Commit

Permalink
fix issue with parsing document names, change to exception
Browse files Browse the repository at this point in the history
  • Loading branch information
davidclaveau committed Nov 10, 2023
1 parent a55e56e commit 3d5af07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/backend/gwells/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def extract_well_number(self, object_name):
def extract_date_of_upload(self, object_name):
try:
return int(unquote_plus(object_name).rsplit('/', 1)[-1].split("_")[2].split(".")[0].strip())
except IndexError:
except Exception as e:
return -1

def extract_well_label(self, object_name):
Expand Down

0 comments on commit 3d5af07

Please sign in to comment.