diff --git a/x_notes/tweets.py b/x_notes/tweets.py index 6df6d34e6..2f3b8b5d6 100644 --- a/x_notes/tweets.py +++ b/x_notes/tweets.py @@ -39,7 +39,8 @@ async def login() -> API: account_kwargs["cookies"] = cookies await api.pool.add_account(**account_kwargs) - if not cookies: + account = await api.pool.get(username) + if not account.active: logger.info("Attempting to log in") await api.pool.login_all() account = await api.pool.get(username)