TBH, I don't know what's the usual practice here. I would be surprised to get an AttributeError for an attribute that does exist, but maybe I know that code too much to have an informed opinion.