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

update_display.py fails to run when mode is changed in config file and new data is not fetched #25

Open
jerbzz opened this issue Jul 3, 2023 · 0 comments

Comments

@jerbzz
Copy link
Owner

jerbzz commented Jul 3, 2023

To Reproduce
Set mode to carbon, store data and update display
Then set mode to agile, and update display
Error occurs

Expected behaviour
The missing data should be handled gracefully, perhaps with a reminder to store data first

*Error

Traceback (most recent call last):
  File "/home/pi/pi-eco-indicator/./update_display.py", line 67, in <module>
    eco_indicator.update_inky(config, data_rows, args.demo)
  File "/home/pi/pi-eco-indicator/eco_indicator.py", line 261, in update_inky
    high_slots_start_idx = high_slots_list.index(max(high_slots_list))
ValueError: max() arg is an empty sequence
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