|
|
@@ -1,5 +1,6 @@
|
|
|
import enum
|
|
|
import logging
|
|
|
+import ssl
|
|
|
import urllib
|
|
|
from itertools import groupby
|
|
|
from typing import List, Union, Optional
|
|
|
@@ -228,6 +229,13 @@ def _perform_query(sender: int, mode: str, user_data: Optional[dict]):
|
|
|
logging.exception(e)
|
|
|
set_status_text(f"Connection to '{endpoint}' failed.", StatusMessageType.ERROR)
|
|
|
return
|
|
|
+ except ssl.SSLCertVerificationError:
|
|
|
+ import certifi
|
|
|
+ logging.error("Certificate error.")
|
|
|
+ logging.error("Please make sure you have intermediate certificates installed.")
|
|
|
+ logging.error(certifi.where())
|
|
|
+ set_status_text(f"Please make sure you have intermediate certificates installed. \n{certifi.where()}", StatusMessageType.ERROR)
|
|
|
+ return
|
|
|
if use_post_method:
|
|
|
logging.debug(f"{query_result}")
|
|
|
if query_result:
|