From bece1329ccb4154c9294ec565ebcfadefebc681e Mon Sep 17 00:00:00 2001 From: Marko Bencun Date: Sun, 24 Sep 2017 23:59:32 +0200 Subject: [PATCH] digitalbitbox: fixed some more python3 issues --- plugins/digitalbitbox/digitalbitbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/digitalbitbox/digitalbitbox.py b/plugins/digitalbitbox/digitalbitbox.py index 1822d6ba..cfc79013 100644 --- a/plugins/digitalbitbox/digitalbitbox.py +++ b/plugins/digitalbitbox/digitalbitbox.py @@ -134,7 +134,7 @@ class DigitalBitbox_Client(): "You cannot access your coins or a backup without the password.\r\n" \ "A backup is saved automatically when generating a new wallet.") if self.password_dialog(msg): - reply = self.hid_send_plain(b'{"password":"' + self.password + '"}') + reply = self.hid_send_plain(b'{"password":"' + self.password + b'"}') else: return False @@ -210,7 +210,7 @@ class DigitalBitbox_Client(): def dbb_generate_wallet(self): key = self.stretch_key(self.password) - filename = b"Electrum-" + time.strftime("%Y-%m-%d-%H-%M-%S") + ".pdf" + filename = ("Electrum-" + time.strftime("%Y-%m-%d-%H-%M-%S") + ".pdf").encode('utf8') msg = b'{"seed":{"source": "create", "key": "%s", "filename": "%s", "entropy": "%s"}}' % (key, filename, b'Digital Bitbox Electrum Plugin') reply = self.hid_send_encrypt(msg) if 'error' in reply: