Fix another unicode bug introduced in 3624234
.
Temporary suppressed pylint no-member warning. Closes: #1633
This commit is contained in:
parent
5cfaa9b2fa
commit
b750b02963
|
@ -1,4 +1,5 @@
|
||||||
"""Composing support request message functions."""
|
"""Composing support request message functions."""
|
||||||
|
# pylint: disable=no-member
|
||||||
|
|
||||||
import ctypes
|
import ctypes
|
||||||
import ssl
|
import ssl
|
||||||
|
@ -70,7 +71,8 @@ def checkAddressBook(myapp):
|
||||||
queryreturn = sqlQuery('SELECT * FROM addressbook WHERE address=?', SUPPORT_ADDRESS)
|
queryreturn = sqlQuery('SELECT * FROM addressbook WHERE address=?', SUPPORT_ADDRESS)
|
||||||
if queryreturn == []:
|
if queryreturn == []:
|
||||||
sqlExecute(
|
sqlExecute(
|
||||||
'INSERT INTO addressbook VALUES (?,?)', SUPPORT_LABEL, SUPPORT_ADDRESS)
|
'INSERT INTO addressbook VALUES (?,?)',
|
||||||
|
SUPPORT_LABEL.toUtf8(), SUPPORT_ADDRESS)
|
||||||
myapp.rerenderAddressBook()
|
myapp.rerenderAddressBook()
|
||||||
|
|
||||||
|
|
||||||
|
@ -85,7 +87,9 @@ def checkHasNormalAddress():
|
||||||
def createAddressIfNeeded(myapp):
|
def createAddressIfNeeded(myapp):
|
||||||
if not checkHasNormalAddress():
|
if not checkHasNormalAddress():
|
||||||
queues.addressGeneratorQueue.put((
|
queues.addressGeneratorQueue.put((
|
||||||
'createRandomAddress', 4, 1, SUPPORT_MY_LABEL, 1, "", False,
|
'createRandomAddress', 4, 1,
|
||||||
|
SUPPORT_MY_LABEL.toUtf8(),
|
||||||
|
1, "", False,
|
||||||
defaults.networkDefaultProofOfWorkNonceTrialsPerByte,
|
defaults.networkDefaultProofOfWorkNonceTrialsPerByte,
|
||||||
defaults.networkDefaultPayloadLengthExtraBytes
|
defaults.networkDefaultPayloadLengthExtraBytes
|
||||||
))
|
))
|
||||||
|
|
Reference in New Issue
Block a user