mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 22:06:27 +00:00
fix exception for preferences
This commit is contained in:
parent
d122e57f1a
commit
3a699585d5
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user