File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 19
19
InferenceContainerTypeFamily ,
20
20
Tags ,
21
21
)
22
- from ads .aqua .common .errors import AquaRuntimeError , AquaValueError
22
+ from ads .aqua .common .errors import (
23
+ AquaFileNotFoundError ,
24
+ AquaRuntimeError ,
25
+ AquaValueError ,
26
+ )
23
27
from ads .aqua .common .utils import (
24
28
LifecycleStatus ,
25
29
_build_resource_identifier ,
@@ -1206,7 +1210,9 @@ def _validate_safetensor_format(
1206
1210
except Exception as ex :
1207
1211
logger .error (
1208
1212
f"Exception occurred while loading config file from { import_model_details .os_path } "
1209
- f"Exception message: { ex } "
1213
+ )
1214
+ logger .error (
1215
+ ex .reason if isinstance (ex , AquaFileNotFoundError ) else str (ex )
1210
1216
)
1211
1217
if not import_model_details .ignore_model_artifact_check :
1212
1218
raise AquaRuntimeError (
You can’t perform that action at this time.
0 commit comments