1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-17 22:01:49 -05:00

Make sure SeenList update has a from in packet

This makes sure that the packet being processed by the seenlist
has a from address.
This commit is contained in:
Hemna 2021-10-21 08:40:40 -04:00
parent 66c5d85b89
commit 89701c8a70

View File

@ -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,