Skip to content

Commit

Permalink
fix JSONDecodeError in anti cheat loader
Browse files Browse the repository at this point in the history
  • Loading branch information
TabulateJarl8 committed Jan 3, 2024
1 parent 45190fe commit 571abfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "vapor-steam"
version = "1.4.0"
version = "1.4.1"
description = "TUI program to check the ProtonDB compatibility of all the games of a Steam user."
authors = ["TabulateJarl8 <[email protected]>"]
license = "GPLv3"
Expand Down
6 changes: 5 additions & 1 deletion vapor/api_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ async def get_anti_cheat_data() -> Cache | None:
if data.status != 200:
return None

anti_cheat_data = json.loads(data.data)
try:
anti_cheat_data = json.loads(data.data)
except json.JSONDecodeError:
return None

deserialized_data = [
AntiCheatData(
app_id=game['storeIds']['steam'],
Expand Down

0 comments on commit 571abfb

Please sign in to comment.