mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
add urlparse
This commit is contained in:
parent
d005321e85
commit
c555ef7de9
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user