Skip to content

Commit

Permalink
Update market.py
Browse files Browse the repository at this point in the history
  • Loading branch information
offish authored May 31, 2020
1 parent 6e35223 commit 59639b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions steam_community_market/market.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

Expand All @@ -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:
Expand Down

0 comments on commit 59639b8

Please sign in to comment.