Skip to content

Commit 4045098

Browse files
committed
Add comment for suppressing import error
Signed-off-by: Rahim Dharssi <[email protected]>
1 parent dd82b84 commit 4045098

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

nemo_run/core/execution/skypilot_jobs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
_SKYPILOT_AVAILABLE = True
2525
except ImportError:
26+
# suppress import error so we don't crash if skypilot is not installed.
2627
pass
2728

2829
logger = logging.getLogger(__name__)

nemo_run/run/torchx_backend/schedulers/skypilot_jobs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
ManagedJobStatus.FAILED_CONTROLLER: AppState.FAILED,
5757
}
5858
except ImportError:
59+
# suppress import error so we don't crash if skypilot is not installed.
5960
pass
6061

6162
SKYPILOT_JOB_DIRS = os.path.join(get_nemorun_home(), ".skypilot_jobs.json")

0 commit comments

Comments
 (0)