Skip to content

Commit

Permalink
Fixes MyPy error in data.py where the exc variable was being overwritten
Browse files Browse the repository at this point in the history
  • Loading branch information
astroDimitrios committed Nov 27, 2024
1 parent 5b6759c commit 2dddf66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions metomi/rose/config_editor/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2dddf66

Please sign in to comment.