You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MONAI Bundle] Very long errors during config instantiation - Clean up raised errors #7451
Is your feature request related to a problem? Please describe.
When there is an error in the monai bundle config during instantiation, and the config is large, the RuntimeError ends up being extremely long.
This is counterproductive for debugging and pollutes the terminal with uninformative error messages.
The root cause of this looks to be the RuntimeError messages generated here:
To Reproduce
Run any relatively large configuration with a wrongly configured argument, and this will occur.
Attached is an example config and the error log below.
The command run for the bundle to run is python -m monai.bundle run system --config_file config.yaml
Activity
surajpaib commentedon Feb 8, 2024
I'm happy to send a PR for this @KumoLiu
Let me know
KumoLiu commentedon Feb 14, 2024
Hi @surajpaib, sure, welcome for the contribution. Thanks.
Remove nested error propagation on `ConfigComponent` instantiate (#7569)
Remove nested error propagation on `ConfigComponent` instantiate (Pro…
Remove nested error propagation on `ConfigComponent` instantiate (Pro…