check if there is a password option in account's section

This commit is contained in:
Yann Leboulanger 2005-01-22 20:32:53 +00:00
parent 5e4520bd0c
commit 9ccd594c5c
1 changed files with 4 additions and 1 deletions

View File

@ -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 = []