Skip to content

Commit

Permalink
Log error on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Aug 5, 2023
1 parent cccd250 commit 7971f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diskimageprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,12 +733,12 @@ def main():
try:
create_spreadsheet(args, sips, volumes, logger)
except Exception as err:
logger.error("Error creating description csv")
logger.error("Error creating description csv: {err}")
else:
try:
create_aspace_excel_sheet(args, sips, volumes, logger)
except Exception as err:
logger.error("Error creating ArchivesSpace description xlsx")
logger.error("Error creating ArchivesSpace description xlsx: {err}")

# print unprocessed list
if unprocessed:
Expand Down

0 comments on commit 7971f95

Please sign in to comment.