[Fix] GetSensitiveData 함수에서 파일이 없을 경우 예외 대신 None 반환

This commit is contained in:
암냥 2025-06-18 21:43:35 +09:00
commit 34a98773ab

View file

@ -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)