Skip to content

Commit

Permalink
Add dev debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Aug 5, 2023
1 parent 478a56a commit 0b8f6a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions diskimageprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,13 @@ def create_aspace_excel_sheet(args, sips, volumes, logger):
workbook = openpyxl.load_workbook(filename=xlsx_path)
worksheet = workbook["Data"]

# TODO: Debug logging
if worksheet is None:
logger.info("worksheet is none")
worksheet = workbook.active
if worksheet is None:
logger.info("workbook.active is none")

# TODO: Deduplicate with create_speadsheet
# Maybe create separate method that creates dict with info, and handle
# opening/writing csv or xlsx separately
Expand Down

0 comments on commit 0b8f6a4

Please sign in to comment.