Skip to content

Commit

Permalink
Fix progress bar for metadata extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
danlamanna committed Mar 8, 2022
1 parent 940eeb5 commit 3af11f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isic_cli/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _extract_metadata(
}
)

if progress and task:
if progress is not None and task is not None:
progress.update(task, advance=1)

return base_fields + list(sorted(metadata_fields)), metadata
Expand Down

0 comments on commit 3af11f4

Please sign in to comment.