Fix bug in exchange_from_url()

Needs testing obviously :)
This commit is contained in:
Mark McLoughlin 2013-06-10 14:30:52 +01:00
parent a0feafa9a7
commit 79a10f26ee
1 changed files with 1 additions and 1 deletions

View File

@ -152,6 +152,6 @@ def exchange_from_url(self, url, default_exchange=None):
if not url.path.startswith('/'):
return default_exchange
parts = u.path[1:].split('/')
parts = url.path[1:].split('/')
return parts[0] if parts[0] else default_exchange