Skip to content

Commit

Permalink
Add empty oauth token logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Aug 30, 2023
1 parent 282ce8b commit 82beb5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apiutils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ template fetchImpl(result, fetchBody) {.dirty.} =

var account = await getGuestAccount(api)
if account.oauthToken.len == 0:
echo "[accounts] Empty oauth token, account: ", account.id
raise rateLimitError()

try:
Expand Down

0 comments on commit 82beb5d

Please sign in to comment.