From 40648cfd9befe96201e07bf5b310620e4e045ff1 Mon Sep 17 00:00:00 2001 From: Mikhail Zakharov Date: Thu, 3 Aug 2023 13:47:10 +0200 Subject: [PATCH 1/2] Enable SSL when checking for a new version --- modules/wb.utils/wb_utils_grt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/wb.utils/wb_utils_grt.py b/modules/wb.utils/wb_utils_grt.py index d389d7369..ec3cc9055 100644 --- a/modules/wb.utils/wb_utils_grt.py +++ b/modules/wb.utils/wb_utils_grt.py @@ -589,6 +589,7 @@ def run(self): self.is_running = True try: import urllib.request, urllib.error, urllib.parse + import ssl import json import base64 @@ -722,7 +723,7 @@ def http_error_407(self, req, fp, code, msg, headers): self.error = "%s\n\nPlease verify that your internet connection is available." % str(error) def checkForUpdatesCallback(self): - if self.isAlive(): + if self.is_alive(): return True # Don't do anything until the dom is built if not self.json: From b1b464b1f39a39880b718b9e9c5cb17156978730 Mon Sep 17 00:00:00 2001 From: Mikhail Zakharov Date: Thu, 3 Aug 2023 14:51:32 +0200 Subject: [PATCH 2/2] importing ssl is redundant --- modules/wb.utils/wb_utils_grt.py | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/wb.utils/wb_utils_grt.py b/modules/wb.utils/wb_utils_grt.py index ec3cc9055..16f1b06b5 100644 --- a/modules/wb.utils/wb_utils_grt.py +++ b/modules/wb.utils/wb_utils_grt.py @@ -589,7 +589,6 @@ def run(self): self.is_running = True try: import urllib.request, urllib.error, urllib.parse - import ssl import json import base64