From 9ccd594c5cb5e7392b1b61ba2c8ad5c0c63d9886 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 22 Jan 2005 20:32:53 +0000 Subject: [PATCH] check if there is a password option in account's section --- Core/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/core.py b/Core/core.py index f9caf4900..a3b4f4c1f 100644 --- a/Core/core.py +++ b/Core/core.py @@ -230,7 +230,10 @@ class GajimCore: for a in self.accounts: self.connected[a] = 0 #0:offline, 1:online, 2:away, #3:xa, 4:dnd, 5:invisible - self.passwords[a] = self.cfgParser.tab[a]["password"] + if self.cfgParser.tab[a].has_key("password"): + self.passwords[a] = self.cfgParser.tab[a]["password"] + else: + self.passwords[a] = ' ' if USE_GPG: self.gpg[a] = MyGnuPG() self.myVCardID = []