fix thread crash
This commit is contained in:
parent
f9b93fd491
commit
2e9af7a4a3
@ -492,8 +492,12 @@ class OnionrCommunicate:
|
||||
for i in blockList:
|
||||
if len(i.strip()) == 0:
|
||||
continue
|
||||
if self._utils.hasBlock(i):
|
||||
continue
|
||||
try:
|
||||
if self._utils.hasBlock(i):
|
||||
continue
|
||||
except:
|
||||
logger.warn('Invalid hash') # TODO: move below validate hash check below
|
||||
pass
|
||||
if i in self.ignoredHashes:
|
||||
continue
|
||||
|
||||
|
@ -446,7 +446,6 @@ class OnionrUtils:
|
||||
else:
|
||||
logger.warn('Failed to verify hash for %s' % block)
|
||||
|
||||
|
||||
def progressBar(self, value = 0, endvalue = 100, width = None):
|
||||
'''
|
||||
Outputs a progress bar with a percentage. Write \n after use.
|
||||
|
Loading…
Reference in New Issue
Block a user