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

Fix copy-paste typo in get_capacity() #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kuba2k2
Copy link

@kuba2k2 kuba2k2 commented Dec 7, 2023

SerialFlash.get_capacity() calls raise instead of return, which causes the following error:

E: TypeError: exceptions must derive from BaseException
E: |-- File "C:\Dev\Python310\lib\site-packages\spiflash\serialflash.py", line 153, in get_capacity

I was trying to use get_capacity() instead of len(flash) because the latter is not recognized by IntelliJ (missing __len__ in the base SerialFlash class).

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

Successfully merging this pull request may close these issues.

1 participant