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
1 changed files with 3 additions and 0 deletions

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,