# HG changeset patch # User Paul Boddie # Date 1480982928 -3600 # Node ID 8eb88c8b40d08258a8115d9c2bb9d55bba99d11a # Parent 5159c0d73bbf4a12204525402f788359e6906505 Prevent exceptions where classes are investigated as providers of attributes. diff -r 5159c0d73bbf -r 8eb88c8b40d0 importer.py --- a/importer.py Mon Dec 05 18:30:55 2016 +0100 +++ b/importer.py Tue Dec 06 01:08:48 2016 +0100 @@ -214,7 +214,8 @@ "Return from 'object_type' the details of class attribute 'attrname'." - attr = self.all_class_attrs[object_type].get(attrname) + attrs = self.all_class_attrs.get(object_type) + attr = attrs and attrs.get(attrname) return attr and self.get_object(attr) def get_instance_attributes(self, object_type, attrname):