mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 05:31:51 +09:00
[Fix] GetSensitiveData 함수에서 파일이 없을 경우 예외 대신 None 반환
This commit is contained in:
parent
1b65693ba5
commit
34a98773ab
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ def GetSensitiveData():
|
||||||
file_path = os.path.join(os.getcwd(), '.sensitive.json')
|
file_path = os.path.join(os.getcwd(), '.sensitive.json')
|
||||||
|
|
||||||
if not os.path.exists(file_path):
|
if not os.path.exists(file_path):
|
||||||
raise FileNotFoundError(f"The file {file_path} does not exist.")
|
return None
|
||||||
|
|
||||||
with open(file_path, 'r') as file:
|
with open(file_path, 'r') as file:
|
||||||
sensitive_data = json.load(file)
|
sensitive_data = json.load(file)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue