From 19452c2461bbc46af19dd34c956a004453b1d99c Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Sat, 20 Aug 2022 13:10:23 +0000 Subject: [PATCH] Fix info customer --- src/gam/gapi/directory/customer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gam/gapi/directory/customer.py b/src/gam/gapi/directory/customer.py index cc2c418b..6f1bb982 100644 --- a/src/gam/gapi/directory/customer.py +++ b/src/gam/gapi/directory/customer.py @@ -95,12 +95,10 @@ def doGetCustomerInfo(): continue except gapi.errors.GapiForbiddenError: return - warnings = result.get('warnings', []) fullDataRequired = ['accounts'] usage = result.get('usageReports') - has_reports = bool(usage) fullData, tryDate = gapi_reports._check_full_data_available( - warnings, tryDate, fullDataRequired, has_reports) + result, tryDate, fullDataRequired, False) if fullData < 0: print('No user report available.') sys.exit(1)