summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2011-11-27 11:15:50 +0000
committerAsk Solem <ask@celeryproject.org>2011-11-27 11:15:50 +0000
commit3edba1812356f3b8cdaf75cea4859606e8d0189a (patch)
treefcd007c3c93c781b3b14e16d1dd2ae2af97b515e
parente4f3811c8af38b4cb043fbf5544da4699d626f79 (diff)
downloadkombu-3edba1812356f3b8cdaf75cea4859606e8d0189a.tar.gz
parse url: Fixes port bug
-rw-r--r--kombu/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kombu/connection.py b/kombu/connection.py
index 7020ceab..dc70a90b 100644
--- a/kombu/connection.py
+++ b/kombu/connection.py
@@ -56,7 +56,7 @@ def parse_url(url):
path = parts.path or ""
if path and path[0] == '/':
path = path[1:]
- port = int(port)
+ port = port and int(port) or port
else:
# strip the scheme since it is appended automatically
hostname = url[len('mongodb://'):]