* do not report inserted message if keyboard interrupt/failure

* do not crash on keyboard interrupt in pow
This commit is contained in:
Kevin Froman 2018-07-09 22:09:45 -05:00
parent b3b5e5bb50
commit 9083775887
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
3 changed files with 7 additions and 6 deletions

View file

@ -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)