This commit is contained in:
Soham Banerjee 2021-07-09 10:52:30 +05:30
parent 574b4f9674
commit f641fc0625

View file

@ -82,7 +82,7 @@ class _GoogleClient:
scopes = ['https://www.googleapis.com/auth/ndev.clouddns.readwrite']
if account_json is not None:
try:
credentials = Credentials.from_service_account_file(account_json, scopes=scopes)
credentials = Credentials.from_service_account_file(account_json, scopes)
with open(account_json) as account:
self.project_id = json.load(account)['project_id']
except Exception as e: