Fixed CQ of class_objectProcessor, bitmessagecurses and bitmessageqt module

This commit is contained in:
navjot 2020-11-16 19:49:10 +05:30
parent 61f7f32dfc
commit 360539b320
No known key found for this signature in database
GPG Key ID: 9EE70AFD71357F1C
3 changed files with 4 additions and 2 deletions

View File

@ -29,7 +29,6 @@ import state
from addresses import addBMIfNotPresent, decodeAddress
from bmconfigparser import BMConfigParser
from helper_ackPayload import genAckPayload
from helper_sql import sqlExecute, sqlQuery
from inventory import Inventory
@ -921,7 +920,7 @@ def sendMessage(sender="", recv="", broadcast=None, subject="", body="", reply=F
for addr in recvlist:
if addr != "":
# pylint: disable=redefined-outer-name
status, version, stream, ripe = decodeAddress(addr)
status, version, stream, ripe = decodeAddress(addr) # pylint: disable=unused-variable
if status != "success":
set_background_title(d, "Recipient address error")
err = "Could not decode" + addr + " : " + status + "\n\n"

View File

@ -2071,6 +2071,7 @@ class MyForm(settingsmixin.SMainWindow):
).arg(email)
)
return
# pylint: disable=unused-variable
status, addressVersionNumber, streamNumber, ripe = decodeAddress(
toAddress)
if status != 'success':

View File

@ -745,6 +745,8 @@ class objectProcessor(threading.Thread):
# We don't actually need the ackdata for acknowledgement
# since this is a broadcast message but we can use it to
# update the user interface when the POW is done generating.
streamNumber = decodeAddress(fromAddress)[2]
ackdata = genAckPayload(streamNumber, 0)
toAddress = '[Broadcast subscribers]'
helper_sent.insert(