Skip to content

Commit

Permalink
Fix for the function return checking
Browse files Browse the repository at this point in the history
  • Loading branch information
markmcdowall committed Jul 30, 2018
1 parent b703caf commit 7bafd14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,11 @@ def run(self, input_files, input_metadata, output_files):
return True
"""

if "status" in kwargs:
return __log(PROGRESS, "{} - {}", message, kwargs["status"])
elif "task_id" in kwargs:

if "task_id" in kwargs:
return __log(PROGRESS, "{} ({}/{})", message, kwargs["task_id"], kwargs["total"])

return __log(PROGRESS, message, *args, **kwargs)

0 comments on commit 7bafd14

Please sign in to comment.