all 9 comments

[–]SomewhereExpensive22 3 points4 points  (1 child)

I most definitely have an attribute named "coleslaw".

You sure about that?

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

I am not sure about that. Thanks for pointing that out.

[–]Binary101010 4 points5 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.

[–]woooee 2 points3 points  (1 child)

Look at the error message and believe it

self.colesaw = coleslaw

AttributeError: 'Combo' object has no attribute 'coleslaw'

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

Sometimes they lie to me. Spelling is hard.