Skip to content

Commit

Permalink
use RuntimeError
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray authored Oct 17, 2023
1 parent 0810dd8 commit c99aefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coffea/nanoevents/schemas/nanoaod.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _build_collections(self, field_names, input_contents):
]
if len(missing_event_ids) > 0:
if self.error_missing_event_ids:
raise Exception(
raise RuntimeError(
f"There are missing event ID fields: {missing_event_ids} \n\n\
The event ID fields {self.event_ids} are necessary to perform sub-run identification \
(e.g. for corrections and sub-dividing data during different detector conditions),\
Expand Down

0 comments on commit c99aefe

Please sign in to comment.