Return 0 price even if price has not been fetched
This commit is contained in:
@@ -49,7 +49,7 @@ class Price(object):
|
||||
|
||||
@property
|
||||
def price(self):
|
||||
if self.status in (PriceStatus.fail, PriceStatus.notSupported):
|
||||
if self.status != PriceStatus.success:
|
||||
return 0
|
||||
else:
|
||||
return self.__price or 0
|
||||
|
||||
Reference in New Issue
Block a user