From 668b98e4037c8a41d3152a66c59651b06140a9ff Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Mon, 12 Jun 2006 07:37:17 +0000 Subject: [PATCH] prevent TB for missing option --- src/common/optparser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/optparser.py b/src/common/optparser.py index 1268f9233..8b8adb4e2 100644 --- a/src/common/optparser.py +++ b/src/common/optparser.py @@ -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')