Fix for IndexError related to SSID extraction.

This commit is contained in:
Paul Kronenwetter 2022-05-29 09:43:17 -04:00
parent b0742e114a
commit 99586c6d19

View file

@ -290,6 +290,9 @@ def check_callsign(callsign: bytes, crc_to_check: bytes):
# We want the callsign without SSID
callsign = callsign.split(b"-")[0]
except IndexError:
# This is expected when `callsign` doesn't have a dash.
pass
except Exception as err:
log.debug("[HLP] check_callsign: Error callsign SSID to integer:", e=err)