Fixed bug in gam oauth create

This commit is contained in:
Ross Scroggs
2026-04-08 17:40:30 -07:00
parent b2e472fafe
commit 10a1c072bb
2 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
7.39.08
Upgraded to Python 3.14.4.
Fixed bug in `gam oauth create` that caused a trap when `0) Business Account Management API` was selected.
Upgraded to Python 3.14.4 on macOS and Windows; Linux is still 3.14.3.
7.39.07

View File

@@ -11330,7 +11330,10 @@ def doOAuthRequest(currentScopes, login_hint, verifyScopes=False):
for scope in scopesList:
if selectedScopes[i] == '*':
if scope['scope']:
scopes.add(scope['scope'])
if not isinstance(scope['scope'], list):
scopes.add(scope['scope'])
else:
scopes.update(scope['scope'])
elif selectedScopes[i] == 'R':
scopes.add(f'{scope["scope"]}.readonly')
elif selectedScopes[i] == 'A':