def import_data(self, data):
        try:
            self.name = data['name']
        except __HOLE__ as e:
            raise ValidationError('Invalid product: missing ' + e.args[0])
        return self
dataset/ETHPy150Open miguelgrinberg/oreilly-flask-apis-video/orders/app/models.py/Product.import_data