Skip to content

Commit 3c90358

Browse files
committed
aadarsh-st/SK-2521: Fix review comment
1 parent 3361ba1 commit 3c90358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skyflow/service_account/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def generate_bearer_token(credentials_file_path, options = None, logger = None):
3939
except Exception:
4040
log_error_log(SkyflowMessages.ErrorLogs.INVALID_CREDENTIALS_FILE.value, logger = logger)
4141
raise SkyflowError(SkyflowMessages.Error.FILE_INVALID_JSON.value.format(credentials_file_path), invalid_input_error_code)
42-
except FileNotFoundError:
42+
except OSError:
4343
raise SkyflowError(SkyflowMessages.Error.INVALID_CREDENTIAL_FILE_PATH.value, invalid_input_error_code)
4444

4545
result = get_service_account_token(credentials, options, logger)

0 commit comments

Comments
 (0)