From e1c3caae8edd5fd91bb4e29de3f7da61067433ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 2 Mar 2015 23:02:34 +0100 Subject: [PATCH] Always pass string to urllib.unquote When there is no trailing '/', it adds None which is not supported by urllib.unquote. issue4589 review12981002 --- tryton/gui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/main.py b/tryton/gui/main.py index 6c854493f1..b2b86b364b 100644 --- a/tryton/gui/main.py +++ b/tryton/gui/main.py @@ -1438,7 +1438,7 @@ class Main(object): hostname, port = map(urllib.unquote, (urlp.netloc.split(':', 1) + [CONFIG.defaults['login.port']])[:2]) database, path = map(urllib.unquote, - (urlp.path[1:].split('/', 1) + [None])[:2]) + (urlp.path[1:].split('/', 1) + [''])[:2]) if (not path or hostname != rpc._HOST or int(port) != rpc._PORT or