handle AttributeError during parsing