Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Bug in Amazon-price-tracker #211

Open
rahulreghunath opened this issue Aug 23, 2020 · 0 comments
Open

Bug in Amazon-price-tracker #211

rahulreghunath opened this issue Aug 23, 2020 · 0 comments
Labels
CH20 Contributor's Hack, 2020 Hard

Comments

@rahulreghunath
Copy link

rahulreghunath commented Aug 23, 2020

Hi,

I found a bug in Amazon-price-tracker script, which crashes the process if the given product is not available or out of stock.

The original error is

Traceback (most recent call last):
  File "price_tracker.py", line 120, in <module>
    print("The price of the product is expressed in " + (currency_used(URL)))
  File "price_tracker.py", line 46, in currency_used
    price = price_element.get_text()
AttributeError: 'NoneType' object has no attribute 'get_text'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CH20 Contributor's Hack, 2020 Hard
Projects
None yet
Development

No branches or pull requests

2 participants