prevent TB for missing option

This commit is contained in:
Dimitur Kirov 2006-06-12 07:37:17 +00:00
parent c4dfd8e443
commit 668b98e403
1 changed files with 2 additions and 1 deletions

View File

@ -270,6 +270,7 @@ class OptionsParser:
def update_config_to_01012(self):
# See [6456]
if self.old_values['emoticons_theme'] == 'Disabled':
if self.old_values.has_key('emoticons_theme') and \
self.old_values['emoticons_theme'] == 'Disabled':
gajim.config.set('emoticons_theme', '')
gajim.config.set('version', '0.10.1.2')