fixed wrong var used for peer causing crash
This commit is contained in:
parent
c249a42bb7
commit
acd5494979
3 changed files with 9 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue