From 0f7037bb32950a81ce2faf2733fe4493de2b1026 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 25 Jul 2016 19:34:08 +0200 Subject: [PATCH] Fix Transport selection via DSN is deprecated --- gns3server/crash_report.py | 3 ++- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gns3server/crash_report.py b/gns3server/crash_report.py index 31c9f86a..464ecf6c 100644 --- a/gns3server/crash_report.py +++ b/gns3server/crash_report.py @@ -23,6 +23,7 @@ import platform try: import raven + from raven.transport.http import HTTPTransport RAVEN_AVAILABLE = True except ImportError: # raven is not installed with deb package in order to simplify packaging @@ -80,7 +81,7 @@ class CrashReport: server_config = Config.instance().get_section_config("Server") if server_config.getboolean("report_errors"): if self._client is None: - self._client = raven.Client(CrashReport.DSN, release=__version__, raise_send_errors=True) + self._client = raven.Client(CrashReport.DSN, release=__version__, raise_send_errors=True, transport=HTTPTransport) if request is not None: self._client.http_context({ "method": request.method, diff --git a/requirements.txt b/requirements.txt index 66a05d29..cbd0d039 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,6 @@ jsonschema>=2.4.0 aiohttp>=0.21.6 aiohttp_cors>=0.4.0 Jinja2>=2.7.3 -raven>=5.2.0 +raven>=5.23.0 psutil>=3.0.0 zipstream>=1.1.3