diff --git a/crawler/data_access.py b/crawler/data_access.py index a99e6f1..2e6fa54 100644 --- a/crawler/data_access.py +++ b/crawler/data_access.py @@ -110,7 +110,8 @@ class Listing: # some places list pw in price and others pcm price = max( - self._listing_object["price"], self._listing_object.get("monthlyRent", 0) + self._listing_object["price"], + self._listing_object.get("monthlyRent", 0) or 0, ) self.append_price_history(price)