Remove import urllib3 and let sentry_sdk import and patch it. Fixes https://github.com/GNS3/gns3-gui/issues/3498

This commit is contained in:
grossmj 2023-07-30 17:42:52 +10:00
parent 38ee79c15f
commit 6097166055

View File

@ -29,7 +29,6 @@ import struct
import platform
import locale
import distro
import urllib3
from .version import __version__, __version_info__
from .config import Config
@ -89,7 +88,7 @@ class CrashReport:
ca_certs=cacert,
default_integrations=False,
integrations=[sentry_logging])
except urllib3.exceptions.HTTPError as e:
except Exception as e:
log.error("Crash report could not be sent: {}".format(e))
return