🐛[bugfix] Model : プロクシ等でPOST/GETした場合にSSL認証エラーが発生する問題に対応 #33

This commit is contained in:
misyaguziya
2024-12-10 14:56:47 +09:00
parent cae9589427
commit 6a30c62769

View File

@@ -323,6 +323,7 @@ class Model:
def checkSoftwareUpdated():
# check update
update_flag = False
try:
response = requests_get(config.GITHUB_URL)
json_data = response.json()
version = json_data.get("name", None)
@@ -331,6 +332,10 @@ class Model:
current_version = parse(config.VERSION)
if new_version > current_version:
update_flag = True
except Exception:
import traceback
with open('error.log', 'a') as f:
traceback.print_exc(file=f)
return update_flag
@staticmethod