🔥 Removed SteamForbiddenError
This commit is contained in:
@@ -22,10 +22,6 @@ class SteamInvalidManifestError(SteamError):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class SteamForbiddenError(SteamError):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class SteamManifestData(TypedDict):
|
class SteamManifestData(TypedDict):
|
||||||
"""Dict returned by SteamHelper.get_manifest_data"""
|
"""Dict returned by SteamHelper.get_manifest_data"""
|
||||||
|
|
||||||
@@ -68,8 +64,6 @@ class SteamHelper:
|
|||||||
with requests.get(
|
with requests.get(
|
||||||
f"{self.base_url}/appdetails?appids={appid}", timeout=5
|
f"{self.base_url}/appdetails?appids={appid}", timeout=5
|
||||||
) as response:
|
) as response:
|
||||||
if response.status_code == 403:
|
|
||||||
raise SteamForbiddenError()
|
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
data = response.json()[appid]
|
data = response.json()[appid]
|
||||||
except HTTPError as error:
|
except HTTPError as error:
|
||||||
|
|||||||
Reference in New Issue
Block a user