Skip to content

Commit

Permalink
Temporarily disable game count and get error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrannicodin committed Jun 21, 2024
1 parent 1480be7 commit 1e0cc95
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions util/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,14 @@ async def update_status(self: "ServerManager") -> None:
timeout=5,
).json()
)
except (ConnectionError, exceptions.InvalidJSONError, exceptions.Timeout):
pass
except (
ConnectionError,
exceptions.InvalidJSONError,
exceptions.Timeout,
) as e:
print(e)
await self.client.change_presence(
activity=Activity(f"{games} games", ActivityType.WATCHING)
activity=Activity("hc-tcg.online", ActivityType.PLAYING)
)

async def update_announcements(self: "ServerManager") -> None:
Expand Down

0 comments on commit 1e0cc95

Please sign in to comment.