From 0cef0aecb510cc4be7039462e1077d1f3b428327 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Mon, 13 May 2024 16:53:43 +0000 Subject: [PATCH] retain None type for user, not empty string --- src/gam/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index bbf9c623..51d89c32 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -5496,7 +5496,7 @@ def buildGAPIObject(api, credentials=None): def getSaUser(user): currentClientAPI = GM.Globals[GM.CURRENT_CLIENT_API] currentClientAPIScopes = GM.Globals[GM.CURRENT_CLIENT_API_SCOPES] - userEmail = convertUIDtoEmailAddress(user) if user else '' + userEmail = convertUIDtoEmailAddress(user) if user else None GM.Globals[GM.CURRENT_CLIENT_API] = currentClientAPI GM.Globals[GM.CURRENT_CLIENT_API_SCOPES] = currentClientAPIScopes return userEmail