From ae28c095602cb6b7134915c97813e7f806af61bc Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Sat, 11 Feb 2023 13:40:59 +0000 Subject: [PATCH] 6.41 - fixes #1600 --- src/gam/__init__.py | 6 ++++-- src/gam/var.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 147d08e6..1a5abcbc 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -7456,10 +7456,12 @@ def _getProjects(crm, pfilter): crm.projects(), 'get', name=f'projects/{pfilter}', - throw_reasons=[gapi_errors.ErrorReason.BAD_REQUEST])] + throw_reasons=[gapi_errors.ErrorReason.BAD_REQUEST, + gapi_errors.ErrorReason.FOUR_O_THREE])] except gapi_errors.GapiBadRequestError as e: controlflow.system_error_exit(2, f'Project: {pfilter}, {str(e)}') - + except googleapiclient.errors.HttpError: + return [] PROJECTID_PATTERN = re.compile(r'^[a-z][a-z0-9-]{4,28}[a-z0-9]$') PROJECTID_FORMAT_REQUIRED = '[a-z][a-z0-9-]{4,28}[a-z0-9]' diff --git a/src/gam/var.py b/src/gam/var.py index d52d77b3..a0ba961a 100644 --- a/src/gam/var.py +++ b/src/gam/var.py @@ -8,7 +8,7 @@ import platform import re GAM_AUTHOR = 'Jay Lee ' -GAM_VERSION = '6.40' +GAM_VERSION = '6.41' GAM_LICENSE = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' GAM_URL = 'https://jaylee.us/gam'