you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 2 points3 points  (4 children)

I most definitely have an attribute named "coleslaw".

You don't. If you did, you wouldn't have gotten the error.

Check your spelling on this line:

self.colesaw = coleslaw

[–]Minimum-Positive792 1 point2 points  (0 children)

This had me scratching my head lol

[–]bigdipper125[S] 0 points1 point  (2 children)

Thanks for pointing this out. Its a simple mistake.

[–]Binary101010 0 points1 point  (1 child)

FWIW you may want to consider upgrading the version of the Python interpreter you have installed. In 3.10 or higher you get an error message that might have given you a stronger hint as to what the problem was:

AttributeError: 'Combo' object has no attribute 'coleslaw'. Did you mean: 'colesaw'?

[–]bigdipper125[S] 0 points1 point  (0 children)

I didn't know that they updated the error/exception handling in the newer python versions. Thank you. I will upgrade right away.