check if there is a password option in account's section
This commit is contained in:
parent
5e4520bd0c
commit
9ccd594c5c
|
@ -230,7 +230,10 @@ class GajimCore:
|
||||||
for a in self.accounts:
|
for a in self.accounts:
|
||||||
self.connected[a] = 0 #0:offline, 1:online, 2:away,
|
self.connected[a] = 0 #0:offline, 1:online, 2:away,
|
||||||
#3:xa, 4:dnd, 5:invisible
|
#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:
|
if USE_GPG:
|
||||||
self.gpg[a] = MyGnuPG()
|
self.gpg[a] = MyGnuPG()
|
||||||
self.myVCardID = []
|
self.myVCardID = []
|
||||||
|
|
Loading…
Reference in New Issue