Catch AttributeError on metadata logic