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'
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