mirror of
https://github.com/MCMi460/3DS-RPC.git
synced 2025-06-18 13:35:34 -04:00
Fix session retirement
This commit is contained in:
parent
be2231e174
commit
0f18e9f843
@ -158,7 +158,7 @@ class APIClient:
|
||||
# If we encounter 400, we assume that this session has already expired.
|
||||
# Let's go ahead and reset the session anyway.
|
||||
if e.response.status_code == 400:
|
||||
DiscordSession().retire(self.current_user.rpc_session_token)
|
||||
DiscordSession().retire(self.current_user.refresh_token)
|
||||
else:
|
||||
raise e
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user