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

Handle no-media better #235

Open
zwbrbr opened this issue Jun 18, 2019 · 0 comments
Open

Handle no-media better #235

zwbrbr opened this issue Jun 18, 2019 · 0 comments
Labels
Rainy day job We should be so lucky

Comments

@zwbrbr
Copy link
Collaborator

zwbrbr commented Jun 18, 2019

Without media there's nowhere to write state to, but we try anyway and incur an exception. Perhaps harmless, but creates log noise.

  File "/home/pi/canute-ui/ui/initial_state.py", line 158, in write
    async with aiofiles.open(path, 'w') as f:
...
PermissionError: [Errno 13] Permission denied: '/media/sd-card/canute_state.txt'
@pachpict pachpict added the Rainy day job We should be so lucky label Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rainy day job We should be so lucky
Projects
None yet
Development

No branches or pull requests

2 participants