From 253d97a9da4ed27460c8faf360ad945d5f160c53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Wed, 1 Jun 2011 18:48:08 +0200 Subject: [PATCH] Do not compare with invalid profile --- tryton/gui/window/dblogin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tryton/gui/window/dblogin.py b/tryton/gui/window/dblogin.py index 2ef4afac6e..6d5300cf8e 100644 --- a/tryton/gui/window/dblogin.py +++ b/tryton/gui/window/dblogin.py @@ -526,6 +526,8 @@ class DBLogin(object): host, port = host_entry.split(':', 1) if ':' in host_entry else ('', '') database = self.entry_database.get_text().strip() for idx, profile_info in enumerate(self.profile_store): + if not profile_info[1]: + continue profile = profile_info[0] if (host == self.profiles.get(profile, 'host') and port == self.profiles.get(profile, 'port')