diff --git a/metomi/rose/config_editor/data.py b/metomi/rose/config_editor/data.py index de4525664..c5da5ef77 100644 --- a/metomi/rose/config_editor/data.py +++ b/metomi/rose/config_editor/data.py @@ -534,8 +534,10 @@ def load_optional_configs(self, config_directory): if opt_exceptions: err_text = "" err_format = metomi.rose.config_editor.ERROR_LOAD_OPT_CONFS_FORMAT - for path, exc in sorted(opt_exceptions.items()): - err_text += err_format.format(path, type(exc).__name__, exc) + for path, exception in sorted(opt_exceptions.items()): + err_text += err_format.format( + path, type(exception).__name__, exception + ) err_text = err_text.rstrip() text = metomi.rose.config_editor.ERROR_LOAD_OPT_CONFS.format( err_text