Fixed missing check for empty app data in announce handler

This commit is contained in:
Mark Qvist 2022-12-23 23:23:17 +01:00
parent d4f8d8e30d
commit 930363f9a3

View File

@ -23,7 +23,7 @@ class PropagationNodeDetector():
def received_announce(self, destination_hash, announced_identity, app_data):
try:
if len(app_data) > 0:
if app_data != None and len(app_data) > 0:
unpacked = msgpack.unpackb(app_data)
node_active = unpacked[0]
emitted = unpacked[1]