Spaces:
Build error
Build error
Update google_sheets_utils.py
Browse files- google_sheets_utils.py +1 -1
google_sheets_utils.py
CHANGED
|
@@ -46,7 +46,7 @@ def get_credentials():
|
|
| 46 |
return None
|
| 47 |
|
| 48 |
try:
|
| 49 |
-
|
| 50 |
return Credentials.from_service_account_info(creds_dict, scopes=SCOPES)
|
| 51 |
except Exception as e:
|
| 52 |
logging.error("Error creating credentials: %s", str(e))
|
|
|
|
| 46 |
return None
|
| 47 |
|
| 48 |
try:
|
| 49 |
+
creds_dict = json.loads(creds_json)
|
| 50 |
return Credentials.from_service_account_info(creds_dict, scopes=SCOPES)
|
| 51 |
except Exception as e:
|
| 52 |
logging.error("Error creating credentials: %s", str(e))
|