From 699313743001a2d2c36c39ff242c70861cd5ef88 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 25 Aug 2023 21:18:15 -0700 Subject: [PATCH] Fixed bug in `gam append sheetrange` that caused a trap Upgraded to Python 3.11.5 where possible. --- src/GamUpdate.txt | 6 ++++++ src/gam/__init__.py | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index 086f1ee5..6424b30b 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -2,6 +2,12 @@ Merged GAM-Team version +6.63.07 + +Fixed bug in `gam append sheetrange` that caused a trap when appending to an empty sheet. + +Upgraded to Python 3.11.5 where possible. + 6.63.06 Updated `cigroup` commands to handle the following error: diff --git a/src/gam/__init__.py b/src/gam/__init__.py index ccc5519c..99e7c20d 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -62794,7 +62794,8 @@ def appendSheetRanges(users): printLine('{'+f'"User": "{user}", "spreadsheetId": "{spreadsheetId}", "JSON": {json.dumps(result, ensure_ascii=False, sort_keys=False)}'+'}') continue for field in ['tableRange']: - printKeyValueList([field, result[field]]) + if field in result: + printKeyValueList([field, result[field]]) _showUpdateValuesResponse(result['updates'], k, kcount) except (GAPI.notFound, GAPI.forbidden, GAPI.permissionDenied, GAPI.internalError, GAPI.insufficientFilePermissions, GAPI.badRequest, @@ -65788,7 +65789,7 @@ def processDelegates(users): j = 0 for delegate in delegates: j += 1 - delegateEmail = convertUIDtoEmailAddress(delegate, cd=cd, aliasAllowed=aliasAllowed) + delegateEmail = convertUIDtoEmailAddress(delegate, cd=cd, emailTypes=['user', 'group'], aliasAllowed=aliasAllowed) try: if function == 'create': callGAPI(gmail.users().settings().delegates(), function,