From b750b02963dae629618a4bf0d0637d45ce516378 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Sat, 30 May 2020 14:18:49 +0300 Subject: [PATCH] Fix another unicode bug introduced in 3624234. Temporary suppressed pylint no-member warning. Closes: #1633 --- src/bitmessageqt/support.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bitmessageqt/support.py b/src/bitmessageqt/support.py index 345ea647..4970beba 100644 --- a/src/bitmessageqt/support.py +++ b/src/bitmessageqt/support.py @@ -1,4 +1,5 @@ """Composing support request message functions.""" +# pylint: disable=no-member import ctypes import ssl @@ -70,7 +71,8 @@ def checkAddressBook(myapp): queryreturn = sqlQuery('SELECT * FROM addressbook WHERE address=?', SUPPORT_ADDRESS) if queryreturn == []: sqlExecute( - 'INSERT INTO addressbook VALUES (?,?)', SUPPORT_LABEL, SUPPORT_ADDRESS) + 'INSERT INTO addressbook VALUES (?,?)', + SUPPORT_LABEL.toUtf8(), SUPPORT_ADDRESS) myapp.rerenderAddressBook() @@ -85,7 +87,9 @@ def checkHasNormalAddress(): def createAddressIfNeeded(myapp): if not checkHasNormalAddress(): queues.addressGeneratorQueue.put(( - 'createRandomAddress', 4, 1, SUPPORT_MY_LABEL, 1, "", False, + 'createRandomAddress', 4, 1, + SUPPORT_MY_LABEL.toUtf8(), + 1, "", False, defaults.networkDefaultProofOfWorkNonceTrialsPerByte, defaults.networkDefaultPayloadLengthExtraBytes ))