From 3edba1812356f3b8cdaf75cea4859606e8d0189a Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Sun, 27 Nov 2011 11:15:50 +0000 Subject: parse url: Fixes port bug --- kombu/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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://'):] -- cgit v1.2.1