Skip to content

Commit a4011c8

Browse files
committed
fix --isolated
1 parent 66a7d93 commit a4011c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ludwig/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ def submit():
174174

175175
if not namespace.isolated:
176176
if not os.path.ismount(str(research_data_path)):
177-
raise SystemError(f'Failed to mount {research_data_path}')
177+
raise OSError(f'{research_data_path} is not mounted')
178178

179179
assert not (namespace.extra_paths and namespace.local), 'Do not use both --extra_paths and --local'
180180

181181
if not src_path.exists():
182182
raise NotADirectoryError(f'Cannot find source code in {src_path}.')
183183

184-
if not research_data_path.exists():
184+
if not namespace.isolated and not research_data_path.exists():
185185
raise OSError(f'{research_data_path} does not exist. '
186186
'Please set the correct path to your custom mount point.')
187187

0 commit comments

Comments
 (0)