diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2005-04-17 23:43:28 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2005-04-17 23:43:28 +0400 |
commit | cb821eb8fd76ce16b6197c4d9c9d247abc82f9f4 (patch) | |
tree | a91dbabca1b36da8e21c9c84d50da6f2c4f83e34 | |
parent | 3b9b46b6e8a20e9170e7259f0c1ddcbb09431e4f (diff) |
if we don't have accounts, don't crash
-rw-r--r-- | src/common/optparser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/optparser.py b/src/common/optparser.py index 9b5b98ed3..7a3ab4a0e 100644 --- a/src/common/optparser.py +++ b/src/common/optparser.py @@ -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 |