File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import configparser
8
8
import os
9
+ import ssl
9
10
import sys
10
11
from urllib import request
11
12
from json import loads
15
16
from PyQt5 .QtWidgets import QMessageBox
16
17
from tools import msg_box_ui
17
18
18
- code = 0.5
19
+ code = 0.6
19
20
ignore_code = 0.0
20
21
21
22
check_last_version_thread = None
@@ -46,7 +47,8 @@ def run(self):
46
47
res_json = None
47
48
# noinspection PyBroadException
48
49
try :
49
- 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 ())
50
52
res_json = loads (res .read ().decode ())
51
53
except Exception :
52
54
pass
You can’t perform that action at this time.
0 commit comments