diff --git a/src/modules/stream_notifications/twitch/token_storage.py b/src/modules/stream_notifications/twitch/token_storage.py index 0227fba..ec0348c 100644 --- a/src/modules/stream_notifications/twitch/token_storage.py +++ b/src/modules/stream_notifications/twitch/token_storage.py @@ -32,6 +32,6 @@ class TokenStorage: data = await collection.find_one({"type": TokenStorage.TYPE, "user": user}) 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"]