mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
fix IndexError: list index out of range in sdr input routine (pocsagDecoder) #111
This commit is contained in:
parent
d4e9b631ab
commit
dc052b94f4
|
|
@ -40,7 +40,7 @@ class PocsagDecoder:
|
|||
|
||||
if re.search("[0-9]{7}", ric) and re.search("[1-4]", subric):
|
||||
if "Alpha:" in data:
|
||||
message = data.split('Alpha: ')[1].strip()
|
||||
message = data.split('Alpha:')[1].strip()
|
||||
message = message.replace('<NUL>', '').replace('<NUL', '').replace('< NUL>', '').replace('<EOT>', '').strip()
|
||||
else:
|
||||
message = ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue