if we don't have accounts, don't crash

This commit is contained in:
Yann Leboulanger 2005-04-17 19:43:28 +00:00
parent 3b9b46b6e8
commit cb821eb8fd
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ class OptionsParser:
if self.tab.has_key('Profile'):
if self.tab['Profile'].has_key('accounts'):
accounts = self.tab['Profile']['accounts'].split()
if not accounts:
return
for account in accounts:
if not self.tab.has_key(account):
continue