tfix #788 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 816495609fa3d87f452d041ca74e197a770cb8d6 DIR parent 1e346404dde636ea682d3d9590bcf6a80ed12bd1 HTML Author: ThomasV <thomasv@gitorious> Date: Thu, 4 Sep 2014 16:44:50 +0200 fix #788 Diffstat: M plugins/labels.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/plugins/labels.py b/plugins/labels.py t@@ -24,6 +24,7 @@ from electrum_gui.qt import HelpButton, EnterButton class Plugin(BasePlugin): target_host = 'labelectrum.herokuapp.com' + encode_password = None def fullname(self): return _('Label Sync') t@@ -37,7 +38,6 @@ class Plugin(BasePlugin): def encode(self, message): encrypted = aes.encryptData(self.encode_password, unicode(message)) encoded_message = base64.b64encode(encrypted) - return encoded_message def decode(self, message): t@@ -87,6 +87,8 @@ class Plugin(BasePlugin): @hook def set_label(self, item,label, changed): + if self.encode_password is None: + return if not changed: return try: