diff --git a/steam_community_market/__init__.py b/steam_community_market/__init__.py index d0ffad8..1cad79c 100644 --- a/steam_community_market/__init__.py +++ b/steam_community_market/__init__.py @@ -8,7 +8,7 @@ __title__ = "steam_community_market" __author__ = "offish" __license__ = "MIT" -__version__ = "1.2.2" +__version__ = "1.2.3" from .market import Market from .request import request diff --git a/steam_community_market/market.py b/steam_community_market/market.py index d3a01aa..3fe6699 100644 --- a/steam_community_market/market.py +++ b/steam_community_market/market.py @@ -48,7 +48,7 @@ def get_overview(self, name: str, app_id) -> dict: :return: An overview of the item on success, :class:`None` otherwise. Overview includes both volume and prices. :rtype: Optional[:class:`dict`] - .. versionchanged:: 1.2.2 + .. versionchanged:: 1.2.3 .. versionadded:: 1.0.0 """ @@ -70,9 +70,9 @@ def get_overview(self, name: str, app_id) -> dict: payload = {"appid": app_id, "market_hash_name": name, "currency": self.currency} response = request(self.URI, payload) - if response["success"] == True: - return response - return None + if not response or response["success"] == False: + return None + return response def get_overviews(self, names: list, app_id) -> dict: