We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The lunches_data in the edupage api.lunches returns [] at times and is not handled at all
[]
Your code
... lunch = edupage.get_lunches(date) ...
Error message
Traceback (most recent call last): File "/home/vertexxdev/Documents/Hobby Shit/lunchOrderer/dataGather.py", line 27, in <module> ordered_lunch = edupage.get_ordered_lunch(date) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/vertexxdev/Documents/Hobby Shit/lunchOrderer/venv/lib/python3.12/site-packages/edupage_api/__init__.py", line 188, in get_ordered_lunch return Lunches(self).get_ordered_lunch(date) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/vertexxdev/Documents/Hobby Shit/lunchOrderer/venv/lib/python3.12/site-packages/edupage_api/module.py", line 100, in __impl return method(self, *method_args, **method_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/vertexxdev/Documents/Hobby Shit/lunchOrderer/venv/lib/python3.12/site-packages/edupage_api/lunches.py", line 209, in get_ordered_lunch lunches_data = lunch_data.get(self.edupage.subdomain) ^^^^^^^^^^^^^^ AttributeError: 'list' object has no attribute 'get'
Expected behavior Return None or empty list.
Version
The text was updated successfully, but these errors were encountered:
can theoretically do a PR fixing this issue later myself but dont know
Sorry, something went wrong.
No branches or pull requests
Describe the bug
The lunches_data in the edupage api.lunches returns
[]
at times and is not handled at allYour code
Error message
Expected behavior
Return None or empty list.
Version
The text was updated successfully, but these errors were encountered: