From 22bcead41cd204755e79d9ddf3a815bbd7988858 Mon Sep 17 00:00:00 2001 From: Emmanuel Rondan Date: Wed, 6 Nov 2024 10:59:47 -0300 Subject: [PATCH] removing python versions 3.6 and 3.7 from actions --- .github/workflows/main.yml | 6 ------ price_parser/parser.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a5a78d0..cb0e0e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,12 +10,6 @@ jobs: fail-fast: false matrix: include: - - python-version: "3.6" - env: - TOXENV: py - - python-version: "3.7" - env: - TOXENV: py - python-version: "3.8" env: TOXENV: py diff --git a/price_parser/parser.py b/price_parser/parser.py index 2c3287b..0a0f8ba 100644 --- a/price_parser/parser.py +++ b/price_parser/parser.py @@ -56,7 +56,7 @@ def fromstring( currency = extract_currency_symbol(price, currency_hint) if currency is not None: currency = currency.strip() - if digit_group_separator: + if digit_group_separator and price is not None: price = price.replace(digit_group_separator, "") amount_text = extract_price_text(price) if price is not None else None amount_num = (