mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 23:43:48 +02:00
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:
parent
38ee79c15f
commit
6097166055
@ -29,7 +29,6 @@ import struct
|
|||||||
import platform
|
import platform
|
||||||
import locale
|
import locale
|
||||||
import distro
|
import distro
|
||||||
import urllib3
|
|
||||||
|
|
||||||
from .version import __version__, __version_info__
|
from .version import __version__, __version_info__
|
||||||
from .config import Config
|
from .config import Config
|
||||||
@ -89,7 +88,7 @@ class CrashReport:
|
|||||||
ca_certs=cacert,
|
ca_certs=cacert,
|
||||||
default_integrations=False,
|
default_integrations=False,
|
||||||
integrations=[sentry_logging])
|
integrations=[sentry_logging])
|
||||||
except urllib3.exceptions.HTTPError as e:
|
except Exception as e:
|
||||||
log.error("Crash report could not be sent: {}".format(e))
|
log.error("Crash report could not be sent: {}".format(e))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user