From 3a699585d5ddc9f91dcce402b1b7431791f7efaf Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sun, 8 Jul 2007 01:37:39 +0000 Subject: [PATCH] fix exception for preferences --- plugins/ExamplePlugin/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ExamplePlugin/plugin.py b/plugins/ExamplePlugin/plugin.py index c2f6ad2b2..68c675562 100644 --- a/plugins/ExamplePlugin/plugin.py +++ b/plugins/ExamplePlugin/plugin.py @@ -56,7 +56,7 @@ class plugin_Example: # The plugin's class try: entry1.set_text(self.config.get("option1")) entry2.set_text(self.config.get("option2")) - except KeyError: + except: entry1.set_text("") entry2.set_text("") self.dialog.show()