Skip to content

Commit

Permalink
Add return to fix double logging
Browse files Browse the repository at this point in the history
* Add return after datecreatedbyapplication is not found to prevent double logging of the warning
  • Loading branch information
ehanson8 committed Aug 6, 2024
1 parent 9ab0dba commit 210af79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aips/create_dip.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ def set_datecreatedbyapplication(premis, namespaces, dip_file_path):
)
if not datecreatedbyapplication:
LOGGER.warning("creatingApplication/dateCreatedByApplication not found")
return

timestamp = datetime.strptime(
datecreatedbyapplication, "%Y-%m-%dT%H:%M:%SZ"
Expand Down

0 comments on commit 210af79

Please sign in to comment.