Commit 33debd3
fix(launcher): re-raise unrelated ModuleNotFoundError in container_metadata init
The bare `except ModuleNotFoundError: pass` silently swallowed errors from
transitive dependencies (pydantic, structlog, etc.) when nemo_evaluator was
on PYTHONPATH as source but its deps were not installed. This made
extract_framework_yml silently disappear from the namespace.
Now only suppresses the error when nemo_evaluator itself is the missing
module; any other missing dependency is re-raised.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Wojciech Prazuch <wprazuch@nvidia.com>1 parent 73877e9 commit 33debd3
File tree
1 file changed
+6
-2
lines changed- packages/nemo-evaluator-launcher/src/nemo_evaluator_launcher/common/container_metadata
1 file changed
+6
-2
lines changedpackages/nemo-evaluator-launcher/src/nemo_evaluator_launcher/common/container_metadata/__init__.py
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments