Take action before the processing of an object begins.

def before_object(eng, objects, obj):
        """Take action before the processing of an object begins."""
        super(InvenioProcessingFactory, InvenioProcessingFactory)\
            .before_object(
            eng, objects, obj
        )
        if "_error_msg" in obj.extra_data:
            del obj.extra_data["_error_msg"]
        db.session.commit()