[inspect] Fix decompiling objects

This commit is contained in:
Behdad Esfahbod 2016-01-23 21:26:54 +01:00
parent b63cbbf070
commit ba42586548

View File

@ -73,7 +73,7 @@ class Row(object):
def _add_object(self, key, value): def _add_object(self, key, value):
# Make sure item is decompiled # Make sure item is decompiled
try: try:
value["asdf"] value.asdf # Any better way?!
except (AttributeError, KeyError, TypeError, ttLib.TTLibError): except (AttributeError, KeyError, TypeError, ttLib.TTLibError):
pass pass
if isinstance(value, ttLib.getTableModule('glyf').Glyph): if isinstance(value, ttLib.getTableModule('glyf').Glyph):