mirror of
https://github.com/craigerl/aprsd.git
synced 2024-10-01 01:26:34 -04: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:
parent
66c5d85b89
commit
89701c8a70
@ -176,6 +176,9 @@ class SeenList(objectstore.ObjectStoreMixin):
|
|||||||
callsign = packet["fromcall"]
|
callsign = packet["fromcall"]
|
||||||
elif "from" in packet:
|
elif "from" in packet:
|
||||||
callsign = packet["from"]
|
callsign = packet["from"]
|
||||||
|
else:
|
||||||
|
LOG.warning(f"Can't find FROM in packet {packet}")
|
||||||
|
return
|
||||||
if callsign not in self.data:
|
if callsign not in self.data:
|
||||||
self.data[callsign] = {
|
self.data[callsign] = {
|
||||||
"last": None,
|
"last": None,
|
||||||
|
Loading…
Reference in New Issue
Block a user