(Jun-25-2021, 07:19 PM)deanhystad Wrote: AttributeError would be the wrong type of error for this. Your code is looking for an attribute that it fails to find. That raises a NameError.
I'm runing python 3.9.5 and get the
AttributeError
, such as in this simple example:class Test: pass t = Test() t.a
Error:Traceback (most recent call last):
File "C:\Users\ruy\Google Drive\PYTHON\cj8-qualifier\qualifier\untitled10.py", line 12, in <module>
t.a
AttributeError: 'Test' object has no attribute 'a'