Skip to content

Commit

Permalink
Raise exception if auth key not found
Browse files Browse the repository at this point in the history
  • Loading branch information
KurimuzonAkuma committed Oct 16, 2024
1 parent 48be194 commit b065377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b065377

Please sign in to comment.