Skip to content

Commit

Permalink
Print error message in the histmaker style
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt committed Oct 28, 2024
1 parent 86f8111 commit 4bb9ff5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/run_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,8 @@ def run_histmaker(args, rdf_module, anapath):

try:
res, hweight = graph_function(dframe, process_name)
except cppyy.gbl.std.runtime_error:
except cppyy.gbl.std.runtime_error as err:
LOGGER.error(err)
LOGGER.error('During loading of the analysis an error occurred!'
'\nAborting...')
sys.exit(3)
Expand Down

0 comments on commit 4bb9ff5

Please sign in to comment.