Removed old path library used to validate client secret path while google authentication. #5750

This commit is contained in:
Yogesh Mahajan authored and GitHub committed 2023-03-28 11:27:16 +05:30
1 parent c78904501d
commit fc0e36b313
2 files changed
+5 -4

No files matched your search

+1 -2
View File
@@ -11,7 +11,6 @@
import pickle
import json
import os
from pathlib import Path
from urllib.parse import unquote
from config import root
@@ -90,7 +89,7 @@ def verify_credentials():
except Exception as e:
return bad_request(errormsg=str(e))
if client_secret_path is not None and Path(client_secret_path).exists():
if client_secret_path and os.path.exists(client_secret_path):
with open(client_secret_path, 'r') as json_file:
client_config = json.load(json_file)