* do not report inserted message if keyboard interrupt/failure
* do not crash on keyboard interrupt in pow
This commit is contained in:
parent
b3b5e5bb50
commit
9083775887
3 changed files with 7 additions and 6 deletions
|
@ -441,7 +441,7 @@ class Onionr:
|
|||
|
||||
#addedHash = Block(type = 'txt', content = messageToAdd).save()
|
||||
addedHash = self.onionrCore.insertBlock(messageToAdd)
|
||||
if addedHash != None:
|
||||
if addedHash != None and addedHash != False and addedHash != "":
|
||||
logger.info("Message inserted as as block %s" % addedHash)
|
||||
else:
|
||||
logger.error('Failed to insert block.', timestamp = False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue