

def load_price_currency_from_str(self, text):
    try:
        (price, currency) = parse_price_currency(text, self.context)
        self.add_value(F_PRICE, price)
    except Exception as e:
        self.add_value(F_PRICE, MISSING_VALUE)
        raise_missing_value(spider_name=self.context['spider_name'], field_name=F_PRICE, url=self.context[F_URL], exception=e, level=STATUS_CRITICAL, message='Could not load price and currency.', category=PARSING_ERROR)

dataset/ETHPy150Open tryolabs/daywatch/daywatch/core/scraper/item_scraper/items.py DealLoader.load_price_currency_from_str/original