Skip to content

Commit

Permalink
black code format
Browse files Browse the repository at this point in the history
Signed-off-by: eyMarv <[email protected]>
  • Loading branch information
eyMarv committed Jul 14, 2024
1 parent 324d3cc commit 94f6ce7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyrogram/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ async def restart(self):
self.last_reconnect_attempt
and (now - self.last_reconnect_attempt) < self.RECONNECT_THRESHOLD
):
to_wait = int(self.RECONNECT_THRESHOLD - (now - self.last_reconnect_attempt))
to_wait = int(
self.RECONNECT_THRESHOLD - (now - self.last_reconnect_attempt)
)
log.warning(
f"[pyroblack] Client [{self.client.name}] is reconnecting too frequently, sleeping for {to_wait} seconds"
)
Expand Down

0 comments on commit 94f6ce7

Please sign in to comment.