Changed SQL INSERT so no injection is possible

This commit is contained in:
Joan
2023-09-02 22:00:59 +02:00
parent d3651352ee
commit 8071324adf
2 changed files with 14 additions and 2 deletions

View File

@@ -25,7 +25,11 @@ def get_price(soup):
if "" not in price:
price = "N/A"
except AttributeError:
price = "N/A"
price = "N/A"
except Exception as e:
price = "N/A"
logging.price(f"Error getting price, using N/A: {e}")
logging.info(f"Price found: {price}")
return price