diff --git a/src/coffea/nanoevents/schemas/nanoaod.py b/src/coffea/nanoevents/schemas/nanoaod.py index 42f9af9e1..e119d698c 100644 --- a/src/coffea/nanoevents/schemas/nanoaod.py +++ b/src/coffea/nanoevents/schemas/nanoaod.py @@ -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),\