I'm not a huge fan of catching `AttributeError` like this, since it can mask a very common kind of typo.  Can you please change this to use `getattr()` and a marker?