Skip to content

Commit

Permalink
bug fix, again
Browse files Browse the repository at this point in the history
  • Loading branch information
B-2U committed Mar 30, 2024
1 parent d58ec35 commit 447e872
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/wws_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ impl<'a> WowsApi<'a> {
.unwrap();
let res = self
._get(url)
.await?
.await
// return None if clan API is fucked
.ok()?
.json::<PlayerClanAPIRes>()
.await
.unwrap();
Expand Down

0 comments on commit 447e872

Please sign in to comment.