Skip to content

Commit

Permalink
Merge pull request #52 from FAIRmat-NFDI/error-fix-in-scienta-reader
Browse files Browse the repository at this point in the history
Fix date parsing in scienta reader
  • Loading branch information
lukaspie authored May 22, 2024
2 parents a5675fc + 424510c commit 4867ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynxtools_xps/scienta/scienta_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _parse_date(date_string: str) -> datetime.datetime:
try:
return datetime.datetime.strptime(date_string, date_fmt)
except ValueError as err:
raise ValueError("Date format not recognized") from err
continue
raise ValueError("Date format not recognized")

def _parse_time(time_string: str) -> datetime.time:
Expand All @@ -71,7 +71,7 @@ def _parse_time(time_string: str) -> datetime.time:
try:
return datetime.datetime.strptime(time_string, time_fmt).time()
except ValueError as err:
raise ValueError("Time format not recognized") from err
continue
raise ValueError("Time format not recognized")

try:
Expand Down

0 comments on commit 4867ab3

Please sign in to comment.