Skip to content
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

Error Reporting Sucks #1

Open
kevinpthorne opened this issue Nov 25, 2021 · 0 comments
Open

Error Reporting Sucks #1

kevinpthorne opened this issue Nov 25, 2021 · 0 comments

Comments

@kevinpthorne
Copy link
Owner

>>> import pi_shiftreg
>>> pi_shiftreg.set_state(1, False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/.local/lib/python3.5/site-packages/pi_shiftreg/__init__.py", line 95, in set_state
    assert idx < len(_current_state)
AssertionError

Of course, init_state wasn't called; errors like these are not clear though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant