зеркало из https://github.com/Azure/aml-run.git
Merge pull request #51 from Azure/catch_new_exception
Catch new azureml exception
This commit is contained in:
Коммит
38994ff055
|
@ -5,6 +5,7 @@ import jsonschema
|
|||
|
||||
from azureml.core import RunConfiguration, ScriptRunConfig
|
||||
from azureml.pipeline.core import Pipeline
|
||||
from azureml.exceptions import UserErrorException
|
||||
|
||||
|
||||
class AMLConfigurationException(Exception):
|
||||
|
@ -99,6 +100,9 @@ def load_runconfig_yaml(runconfig_yaml_file):
|
|||
except FileNotFoundError as exception:
|
||||
print(f"::debug::Error when loading runconfig yaml definition your repository (Path: /{runconfig_yaml_file}): {exception}")
|
||||
run_config = None
|
||||
except UserErrorException as exception:
|
||||
print(f"::debug::Error when loading runconfig yaml definition your repository (Path: /{runconfig_yaml_file}): {exception}")
|
||||
run_config = None
|
||||
return run_config
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче