Skip to content

Commit

Permalink
Retrieve traceback from pool workers
Browse files Browse the repository at this point in the history
  • Loading branch information
baileythegreen committed Dec 22, 2021
1 parent 0949a46 commit 54c33ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyani/scripts/subcommands/subcmd_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def write_run_plots(run_id: int, session, outfmts: List[str], args: Namespace) -

# Run the plotting commands
for func, options in plotting_commands:
pool.apply_async(func, options, {})
result = pool.apply_async(func, options, {}, callback=logger.debug)
result.get()

# Close worker pool
pool.close()
Expand Down

0 comments on commit 54c33ea

Please sign in to comment.