File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -980,8 +980,8 @@ def get_model_files(os_path: str, model_format: ModelFormat) -> List[str]:
980
980
file_path = os_path ,
981
981
config_file_name = AQUA_MODEL_ARTIFACT_CONFIG ,
982
982
)
983
- except Exception :
984
- pass
983
+ except Exception as ex :
984
+ logger . warning ( str ( ex ))
985
985
else :
986
986
model_files .append (AQUA_MODEL_ARTIFACT_CONFIG )
987
987
@@ -1125,8 +1125,11 @@ def _validate_model(
1125
1125
Tags .LICENSE : license_value ,
1126
1126
}
1127
1127
validation_result .tags = hf_tags
1128
- except Exception :
1129
- pass
1128
+ except Exception as ex :
1129
+ logger .debug (
1130
+ f"An error occurred while getting tag information for model { model_name } . "
1131
+ f"Error: { str (ex )} "
1132
+ )
1130
1133
1131
1134
validation_result .model_formats = model_formats
1132
1135
@@ -1235,10 +1238,13 @@ def _validate_safetensor_format(
1235
1238
f"Could not find { AQUA_MODEL_ARTIFACT_CONFIG_MODEL_TYPE } attribute in "
1236
1239
f"{ AQUA_MODEL_ARTIFACT_CONFIG } . Proceeding with model registration."
1237
1240
)
1238
- except Exception :
1241
+ except Exception as ex :
1239
1242
# todo: raise exception if model_type doesn't match. Currently log message and pass since service
1240
1243
# models do not have this metadata.
1241
- pass
1244
+ logger .debug (
1245
+ f"Error occurred while processing metadata for model { model_name } . "
1246
+ f"Exception: { str (ex )} "
1247
+ )
1242
1248
validation_result .telemetry_model_name = verified_model .display_name
1243
1249
elif (
1244
1250
model_config is not None
You can’t perform that action at this time.
0 commit comments