Skip to content

Commit

Permalink
Merge pull request #908 from sphuber/fix_907_add_exception_to_workcal…
Browse files Browse the repository at this point in the history
…culation_report

Trigger the DbLogHandler for exceptions in WorkChains run by daemon
  • Loading branch information
giovannipizzi authored Nov 10, 2017
2 parents 96f8999 + ac9d226 commit cc9d06b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aiida/work/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def tick_workflow_engine(storage=None, print_exceptions=True):
proc.stop()
proc.run_until(ProcessState.DESTROYED)
except BaseException:
proc.logger.error('exception occurred:\n{}'.format(traceback.format_exc()))
if print_exceptions:
traceback.print_exc()
continue
Expand Down

0 comments on commit cc9d06b

Please sign in to comment.