Skip to content
Snippets Groups Projects
Commit 9ccd594c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 5e4520bd
No related branches found
No related tags found
No related merge requests found
......@@ -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 = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment