From 0dc1113e4814bbbe93a20b0a842318e9a8110aca Mon Sep 17 00:00:00 2001 From: "mauro.cortellazzi" Date: Tue, 25 Jun 2024 09:15:23 +0200 Subject: [PATCH] fix: update error message --- sdk/radicalbit_platform_sdk/apis/model_current_dataset.py | 6 +++--- sdk/radicalbit_platform_sdk/apis/model_reference_dataset.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/radicalbit_platform_sdk/apis/model_current_dataset.py b/sdk/radicalbit_platform_sdk/apis/model_current_dataset.py index 385fd9da..75966d5b 100644 --- a/sdk/radicalbit_platform_sdk/apis/model_current_dataset.py +++ b/sdk/radicalbit_platform_sdk/apis/model_current_dataset.py @@ -141,7 +141,7 @@ def __callback( ) case _: raise ClientError( - 'Unable to parse get metrics for not binary models' + 'Unable to parse metrics because of not managed model type' ) from None except KeyError as e: raise ClientError(f'Unable to parse response: {response.text}') from e @@ -211,7 +211,7 @@ def __callback( ) case _: raise ClientError( - 'Unable to parse get metrics for not binary models' + 'Unable to parse metrics because of not managed model type' ) from None except KeyError as e: raise ClientError(f'Unable to parse response: {response.text}') from e @@ -281,7 +281,7 @@ def __callback( ) case _: raise ClientError( - 'Unable to parse get metrics for not binary models' + 'Unable to parse metrics because of not managed model type' ) from None except KeyError as e: raise ClientError(f'Unable to parse response: {response.text}') from e diff --git a/sdk/radicalbit_platform_sdk/apis/model_reference_dataset.py b/sdk/radicalbit_platform_sdk/apis/model_reference_dataset.py index 42dd2f99..8c4183dd 100644 --- a/sdk/radicalbit_platform_sdk/apis/model_reference_dataset.py +++ b/sdk/radicalbit_platform_sdk/apis/model_reference_dataset.py @@ -137,7 +137,7 @@ def __callback( ) case _: raise ClientError( - 'Unable to parse get metrics for not binary models' + 'Unable to parse metrics because of not managed model type' ) from None except KeyError as e: raise ClientError(f'Unable to parse response: {response.text}') from e @@ -207,7 +207,7 @@ def __callback( ) case _: raise ClientError( - 'Unable to parse get metrics for not binary models' + 'Unable to parse metrics because of not managed model type' ) from None except KeyError as e: raise ClientError(f'Unable to parse response: {response.text}') from e