Fix info customer

This commit is contained in:
Jay Lee
2022-08-20 13:10:23 +00:00
parent 4e2e96a6dd
commit 19452c2461

View File

@@ -95,12 +95,10 @@ def doGetCustomerInfo():
continue continue
except gapi.errors.GapiForbiddenError: except gapi.errors.GapiForbiddenError:
return return
warnings = result.get('warnings', [])
fullDataRequired = ['accounts'] fullDataRequired = ['accounts']
usage = result.get('usageReports') usage = result.get('usageReports')
has_reports = bool(usage)
fullData, tryDate = gapi_reports._check_full_data_available( fullData, tryDate = gapi_reports._check_full_data_available(
warnings, tryDate, fullDataRequired, has_reports) result, tryDate, fullDataRequired, False)
if fullData < 0: if fullData < 0:
print('No user report available.') print('No user report available.')
sys.exit(1) sys.exit(1)