fixed CQ issues
This commit is contained in:
parent
4681d37377
commit
1c304125e8
|
@ -919,7 +919,7 @@ def sendMessage(sender="", recv="", broadcast=None, subject="", body="", reply=F
|
||||||
list(set(recvlist)) # Remove exact duplicates
|
list(set(recvlist)) # Remove exact duplicates
|
||||||
for addr in recvlist:
|
for addr in recvlist:
|
||||||
if addr != "":
|
if addr != "":
|
||||||
status, version, stream, ripe = decodeAddress(addr)
|
status, version, stream = decodeAddress(addr)[:3]
|
||||||
if status != "success":
|
if status != "success":
|
||||||
set_background_title(d, "Recipient address error")
|
set_background_title(d, "Recipient address error")
|
||||||
err = "Could not decode" + addr + " : " + status + "\n\n"
|
err = "Could not decode" + addr + " : " + status + "\n\n"
|
||||||
|
|
|
@ -2070,8 +2070,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
).arg(email)
|
).arg(email)
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
status, addressVersionNumber, streamNumber, ripe = decodeAddress(
|
status, addressVersionNumber, streamNumber = decodeAddress(toAddress)[:3]
|
||||||
toAddress)
|
|
||||||
if status != 'success':
|
if status != 'success':
|
||||||
try:
|
try:
|
||||||
toAddress = unicode(toAddress, 'utf-8', 'ignore')
|
toAddress = unicode(toAddress, 'utf-8', 'ignore')
|
||||||
|
|
|
@ -29,7 +29,6 @@ from addresses import (
|
||||||
)
|
)
|
||||||
from bmconfigparser import BMConfigParser
|
from bmconfigparser import BMConfigParser
|
||||||
from fallback import RIPEMD160Hash
|
from fallback import RIPEMD160Hash
|
||||||
from helper_ackPayload import genAckPayload
|
|
||||||
from helper_sql import SqlBulkExecute, sqlExecute, sqlQuery
|
from helper_sql import SqlBulkExecute, sqlExecute, sqlQuery
|
||||||
from network import bmproto, knownnodes
|
from network import bmproto, knownnodes
|
||||||
from network.node import Peer
|
from network.node import Peer
|
||||||
|
|
|
@ -253,7 +253,7 @@ class TestCore(unittest.TestCase):
|
||||||
)
|
)
|
||||||
queryreturn = sqlQuery(
|
queryreturn = sqlQuery(
|
||||||
'''select msgid from sent where ackdata=?''', result)
|
'''select msgid from sent where ackdata=?''', result)
|
||||||
self.assertNotEqual(queryreturn[0][0] if queryreturn else '' , '')
|
self.assertNotEqual(queryreturn[0][0] if queryreturn else '', '')
|
||||||
|
|
||||||
column_type = sqlQuery(
|
column_type = sqlQuery(
|
||||||
'''select typeof(msgid) from sent where ackdata=?''', result)
|
'''select typeof(msgid) from sent where ackdata=?''', result)
|
||||||
|
|
Reference in New Issue
Block a user