Skip to content

Commit

Permalink
Fix attempt initialisation
Browse files Browse the repository at this point in the history
Co-authored-by: Tulir Asokan <[email protected]>
  • Loading branch information
Fizzadar and tulir authored Nov 13, 2023
1 parent d47fb1d commit db157c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix_telegram/abstract_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ async def has_full_access(self, allow_bot: bool = False) -> bool:
async def start(self, delete_unless_authenticated: bool = False) -> AbstractUser:
if not self.client:
await self._init_client()
attempts = 1
while True:
attempts = 1
try:
await self.client.connect()
except Exception:
Expand Down

0 comments on commit db157c3

Please sign in to comment.