diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py index 64c7de8967..d4b9f6c6ee 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -142,7 +142,7 @@ async def start(self): log.info("Session initialized: Layer %s", layer) log.info("Device: %s - %s", self.client.device_model, self.client.app_version) log.info("System: %s (%s)", self.client.system_version, self.client.lang_code) - except AuthKeyDuplicated as e: + except (AuthKeyDuplicated, Unauthorized) as e: await self.stop() raise e except (OSError, RPCError):