Skip to content

Commit 05335e7

Browse files
SK-971: fix the message and import
1 parent e26502d commit 05335e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

skyflow/utils/_skyflow_messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Error(Enum):
100100
INVALID_TABLE_VALUE = f"{error_prefix} Validation error. Invalid type of table. Specify table as a string"
101101
EMPTY_RECORD_IDS_IN_DELETE = f"{error_prefix} Validation error. 'record ids' array can't be empty. Specify one or more record ids."
102102
BULK_DELETE_FAILURE = f"{error_prefix} Delete operation failed."
103-
EMPTY_SKYFLOW_ID= f"{error_prefix} Validation error. Skyflow id can't be empty."
103+
EMPTY_SKYFLOW_ID= f"{error_prefix} Validation error. skyflow_id can't be empty."
104104
INVALID_FILE_COLUMN_NAME= f"{error_prefix} Validation error. 'column_name' can't be empty."
105105

106106
INVALID_QUERY_TYPE = f"{error_prefix} Validation error. Query parameter is of type {{}}. Specify as a string."

skyflow/utils/validations/_validations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import base64
12
import json
23
import os
34
from skyflow.generated.rest import TokenType
@@ -736,7 +737,6 @@ def validate_file_upload_request(logger, request):
736737
if is_none_or_empty(file_name):
737738
raise SkyflowError(SkyflowMessages.Error.INVALID_FILE_NAME.value, invalid_input_error_code)
738739
try:
739-
import base64
740740
base64.b64decode(base64_str)
741741
except Exception:
742742
raise SkyflowError(SkyflowMessages.Error.INVALID_BASE64_STRING.value, invalid_input_error_code)

0 commit comments

Comments
 (0)