Basta Fazoolin'

I’m stuck on step 16 - I get the following error:

Traceback (most recent call last):
File “”, line 64, in
File “”, line 29, in available_menus
if time >= menu.start_time and time <= menu.end_time:
AttributeError: ‘dict’ object has no attribute ‘start_time’

I watched the video and I believe I followed it keystroke-by-keystroke to this point to make sure I wasn’t missing anything, but I can’t seem to get this to work. Any ideas what I’m doing wrong?

Hello, @code3756334342, and welcome to the forums.

When you created flagship_store, what argument did you supply for menus? Is it a list of menu objects that have start_time and end_time attributes? Without seeing your code, I’m just guessing, but from your error message, you supplied a list of dictionaries instead of a list of menu objects. You can see for yourself by adding print statements to your code to inspect the values used.


That’s it! I called the items list but not the menus with the time details. Thanks so much, I’ve been trying to figure this one out for a while.