Skip to content

Commit

Permalink
Add more messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 12, 2023
1 parent 2c1590b commit c35d4eb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scan_to_paperless/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,13 @@ def main() -> None:
shutil.rmtree(root_folder)
elif job_type == JobType.CODE:
assert name is not None
_process_code(name)
print(f"Process code '{name}'")
try:
_process_code(name)
except Exception as exception:
print(exception)
trace = traceback.format_exc()
print(trace)
elif job_type == JobType.NONE:
status.set_global_status("Waiting...")
status.set_current_folder(None)
Expand Down

0 comments on commit c35d4eb

Please # to comment.