From d3ef0dcbd0131ce2b8fac618b7e4c485236da865 Mon Sep 17 00:00:00 2001 From: Jiaxiao Zheng Date: Thu, 9 Jul 2020 16:56:34 -0700 Subject: [PATCH] fix(sdk): fixes the default value for _is_refresh_token. Fixes #4189 (#4195) --- sdk/python/kfp/_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/kfp/_client.py b/sdk/python/kfp/_client.py index 54005b478a2..55d08dc8b5d 100644 --- a/sdk/python/kfp/_client.py +++ b/sdk/python/kfp/_client.py @@ -247,7 +247,7 @@ def _load_context_setting_or_default(self): def _refresh_api_client_token(self): """Refreshes the existing token associated with the kfp_api_client.""" - if getattr(self, '_is_refresh_token'): + if getattr(self, '_is_refresh_token', None): return new_token = get_gcp_access_token()