We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a09aaa commit cb0b3c5Copy full SHA for cb0b3c5
check_version.py
@@ -6,6 +6,7 @@
6
7
import configparser
8
import os
9
+import ssl
10
import sys
11
from urllib import request
12
from json import loads
@@ -15,7 +16,7 @@
15
16
from PyQt5.QtWidgets import QMessageBox
17
from tools import msg_box_ui
18
-code = 0.5
19
+code = 0.6
20
ignore_code = 0.0
21
22
check_last_version_thread = None
@@ -46,7 +47,8 @@ def run(self):
46
47
res_json = None
48
# noinspection PyBroadException
49
try:
- res = request.urlopen('https://raw.githubusercontent.com/debuggerx01/JSONFormat4Flutter/master/version')
50
+ res = request.urlopen('https://raw.githubusercontent.com/debuggerx01/JSONFormat4Flutter/master/version',
51
+ context=ssl._create_unverified_context())
52
res_json = loads(res.read().decode())
53
except Exception:
54
pass
0 commit comments