fixed wrong var used for peer causing crash

This commit is contained in:
Kevin Froman 2018-04-25 18:21:43 -05:00
parent c249a42bb7
commit acd5494979
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
3 changed files with 9 additions and 4 deletions

View file

@ -595,6 +595,11 @@ class Core:
'''
retData = ''
metadata = '-' + header + '-'
metadata = metadata.encode()
try:
data.decode()
except AttributeError:
data = data.encode()
if len(data) == 0:
logger.error('Will not insert empty block')
else: