Return 0 price even if price has not been fetched

This commit is contained in:
DarkPhoenix
2019-02-13 16:19:01 +03:00
parent 3ed949395e
commit 7dd1c63898

View File

@@ -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