From da807236863db33fa93ee12b2b00e822232ef5ee Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sun, 28 Jan 2018 20:19:30 -0600 Subject: [PATCH] do not claim hash is invalid when there was no hash --- onionr/communicator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onionr/communicator.py b/onionr/communicator.py index 0c35fcf5..422dbf9d 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -111,7 +111,8 @@ class OnionrCommunicate: logger.debug('Exchanged block (blockList): ' + i) if not self._utils.validateHash(i): # skip hash if it isn't valid - logger.warn('Hash ' + i + ' is not valid') + if len(i.strip()) != 0 + logger.warn('Hash ' + i + ' is not valid') continue else: logger.debug('Adding ' + i + ' to hash database...')