Skip to content

Commit

Permalink
Fixed the version variable in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun committed Oct 20, 2021
1 parent 650b767 commit 8f61efb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions google/cloud/aiplatform/models.py
Expand Up @@ -2586,7 +2586,7 @@ def upload_xgboost_model_file(

if xgboost_version not in XGBOOST_SUPPORTED_VERSIONS:
_LOGGER.error(
f"XGBoost version {version} is not supported. "
f"XGBoost version {xgboost_version} is not supported. "
f"Supported versions: {XGBOOST_SUPPORTED_VERSIONS}"
)

Expand Down Expand Up @@ -2793,7 +2793,7 @@ def upload_scikit_learn_model_file(

if sklearn_version not in SKLEARN_SUPPORTED_VERSIONS:
_LOGGER.error(
f"Scikit-learn version {version} is not supported. "
f"Scikit-learn version {sklearn_version} is not supported. "
f"Supported versions: {SKLEARN_SUPPORTED_VERSIONS}"
)

Expand Down Expand Up @@ -3007,7 +3007,7 @@ def upload_tensorflow_saved_model(

if tensorflow_version not in TENSORFLOW_SUPPORTED_VERSIONS:
_LOGGER.error(
f"Tensorflow version {version} is not supported. "
f"Tensorflow version {tensorflow_version} is not supported. "
f"Supported versions: {TENSORFLOW_SUPPORTED_VERSIONS}"
)

Expand Down

0 comments on commit 8f61efb

Please sign in to comment.