Skip to content

Commit

Permalink
BUG: fix a crash in idfx run where a Python exception would be rais…
Browse files Browse the repository at this point in the history
…ed instead of an error message
  • Loading branch information
neutrinoceros committed Dec 15, 2024
1 parent eef407a commit 32333d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- BUG: fix a crash in `idfx run` where a Python exception would be raised
instead of an error message

## [6.0.0] - 2024-12-05

- DEP: drop `[isolated]` extra (external tooling should handle dependency pinning)
Expand Down
2 changes: 1 addition & 1 deletion src/idefix_cli/_commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def command(
except ValueError:
print_warning(
f"Expected [idfx run].recompile to be any of {[str(_) for _ in RebuildMode]}"
f"Got {rebuild_mode} from {get_config_file()}\n"
f"Got {rebuild_mode_str!r} from {get_config_file()}\n"
)
print_warning("Falling back to 'prompt' mode.")
rebuild_mode = RebuildMode.PROMPT
Expand Down

0 comments on commit 32333d4

Please sign in to comment.