if we don't have accounts, don't crash
This commit is contained in:
parent
3b9b46b6e8
commit
cb821eb8fd
|
@ -120,6 +120,8 @@ class OptionsParser:
|
||||||
if self.tab.has_key('Profile'):
|
if self.tab.has_key('Profile'):
|
||||||
if self.tab['Profile'].has_key('accounts'):
|
if self.tab['Profile'].has_key('accounts'):
|
||||||
accounts = self.tab['Profile']['accounts'].split()
|
accounts = self.tab['Profile']['accounts'].split()
|
||||||
|
if not accounts:
|
||||||
|
return
|
||||||
for account in accounts:
|
for account in accounts:
|
||||||
if not self.tab.has_key(account):
|
if not self.tab.has_key(account):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue