fix exception for preferences

This commit is contained in:
Marcos Pinto 2007-07-08 01:37:39 +00:00
parent d122e57f1a
commit 3a699585d5
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class plugin_Example: # The plugin's class
try: try:
entry1.set_text(self.config.get("option1")) entry1.set_text(self.config.get("option1"))
entry2.set_text(self.config.get("option2")) entry2.set_text(self.config.get("option2"))
except KeyError: except:
entry1.set_text("") entry1.set_text("")
entry2.set_text("") entry2.set_text("")
self.dialog.show() self.dialog.show()