Skip to content

Conversation

@gitgrift
Copy link

@gitgrift gitgrift commented Sep 21, 2020

If the i2c kernel modules are not loaded or the user does not have the correct permissions the smbus.SMBus() call will fail. Wrap the call in try/except to catch this.

Fixes: #7

Signed-off-by: Patrick Talbert [email protected]

If the i2c kernel modules are not loaded or the user does not have the correct permissions the smbus.SMBus() call will fail. Wrap the call in try/except to catch this.

Fixes: spapadim#4

Signed-off-by: Patrick Talbert <[email protected]>
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.

FileNotFoundError: [Errno 2] No such file or directory for smbus.SMBus(_SMBUS_DEV)

1 participant