From 2aef8052e9277fe2598b40162e2daaaf616741e8 Mon Sep 17 00:00:00 2001 From: shimwell Date: Sun, 13 Nov 2022 16:11:23 +0000 Subject: [PATCH] added acceptable keys to help user --- openmc/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openmc/config.py b/openmc/config.py index 087a8c27e9..3b89925360 100644 --- a/openmc/config.py +++ b/openmc/config.py @@ -42,7 +42,9 @@ class _Config(MutableMapping): # Reset photon source data since it relies on chain file _DECAY_PHOTON_ENERGY.clear() else: - raise KeyError(f'Unrecognized config key: {key}') + raise KeyError(f'Unrecognized config key: {key}. Acceptable keys ' + 'are "cross_sections", "mg_cross_sections" and ' + '"chain_file"') def __iter__(self): return iter(self._mapping)