mirror of
https://github.com/kurbezz/discord-bot.git
synced 2026-03-03 17:20:47 +01:00
Fix
This commit is contained in:
@@ -32,6 +32,6 @@ class TokenStorage:
|
|||||||
data = await collection.find_one({"type": TokenStorage.TYPE, "user": user})
|
data = await collection.find_one({"type": TokenStorage.TYPE, "user": user})
|
||||||
|
|
||||||
if data is None:
|
if data is None:
|
||||||
logging.info(f"Token for user {user} not found")
|
raise RuntimeError(f"Token for user {user} not found")
|
||||||
|
|
||||||
return data["access_token"], data["refresh_token"]
|
return data["access_token"], data["refresh_token"]
|
||||||
|
|||||||
Reference in New Issue
Block a user