From 930363f9a349e219af8245ac664e5c0fc65b4502 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 23 Dec 2022 23:23:17 +0100 Subject: [PATCH] Fixed missing check for empty app data in announce handler --- sbapp/sideband/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index 22676d1..25a7183 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -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]