-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexError: list index out of range in sdr input routine (pocsagDecoder) #111
Comments
Is a split with whitespaces necessary at all? @wattenre Maybe you can try this as following? if "Alpha:" in data:
try:
message = data.split('Alpha:')[1].strip()
except IndexError:
logging.warning("index out of range: %s", data) |
@Schrolli91 Oh, I completely overlooked the "strip" call. You are right, this also removes leading spaces, so your code is the solution. By the way: The dev channel contains some bugfixes, as I saw. We could merge this in there. Is this currently stable so that I can switch to it without problems? |
As far as i know - the dev should as stable as the master is |
Why was this closed? Looking at the code, this doesn't seem to be fixed yet. |
You,re right! Sorry for that. |
Sure, I can do that when I find some time. |
Hello together,
i'm sometimes faced with the following issue:
After this occurs, i have to manually restart the client service and everything is fine again.
Is it maybe due to the following code in boswatch/decoder/pocsagDecoder.py:
Checking for "Alpha:" is not enough if split function is trying to split 'Alpha: ' (with whitespace)?
Thanks in advance
Greetings René
The text was updated successfully, but these errors were encountered: