From 89701c8a7084cd3b4f535f7741c7e76aca042f28 Mon Sep 17 00:00:00 2001 From: Hemna Date: Thu, 21 Oct 2021 08:40:40 -0400 Subject: [PATCH] Make sure SeenList update has a from in packet This makes sure that the packet being processed by the seenlist has a from address. --- aprsd/packets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aprsd/packets.py b/aprsd/packets.py index 35cd6e3..edfc86a 100644 --- a/aprsd/packets.py +++ b/aprsd/packets.py @@ -176,6 +176,9 @@ class SeenList(objectstore.ObjectStoreMixin): callsign = packet["fromcall"] elif "from" in packet: callsign = packet["from"] + else: + LOG.warning(f"Can't find FROM in packet {packet}") + return if callsign not in self.data: self.data[callsign] = { "last": None,