add urlparse

This commit is contained in:
Trần Tuấn Anh 2015-08-20 22:44:49 +07:00
parent d005321e85
commit c555ef7de9

View File

@ -126,6 +126,7 @@ def setup_handlers():
# support ver 5.5.0
except AttributeError:
from raven.transport import TransportRegistry, default_transports
from raven.utils.urlparse import urlparse
transport_registry = TransportRegistry(default_transports)
url = urlparse(dsn)
if not transport_registry.supported_scheme(url.scheme):