We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e95df71 commit e70f109Copy full SHA for e70f109
src/nemo_run/core/runners/fdl_runner.py
@@ -13,6 +13,8 @@
13
# See the License for the specific language governing permissions and
14
# limitations under the License.
15
16
+import logging
17
+
18
import typer
19
20
fdl_runner_app = typer.Typer(pretty_exceptions_enable=False)
@@ -49,7 +51,11 @@ def fdl_direct_run(
49
51
fdl_package.setup()
50
52
53
if os.path.isfile(fdl_config):
- maybe_load_external_main(Path(fdl_config).parent.parent.parent)
54
+ try:
55
+ maybe_load_external_main(Path(fdl_config).parent.parent.parent)
56
+ except Exception as e:
57
+ logging.warning(f"Failed to load external main: {e}")
58
59
fdl_config = Path(fdl_config).read_text()
60
61
fdl_buildable: fdl.Buildable = ZlibJSONSerializer().deserialize(fdl_config)
0 commit comments