retain None type for user, not empty string

This commit is contained in:
Jay Lee
2024-05-13 16:53:43 +00:00
parent 4ed9d7ac1f
commit 0cef0aecb5

View File

@@ -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