Skip to content

Commit

Permalink
Format to pass linting
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercr committed May 23, 2024
1 parent 31801a4 commit 716222a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mautrix_telegram/abstract_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,11 @@ def _schedule_reconnect(self) -> None:
if not reconnect_interval or reconnect_interval == 0:
return
refresh_time = time.time() + reconnect_interval
self.log.info("Scheduling forced reconnect in %d seconds. Connection will be refreshed at %s", reconnect_interval, time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(refresh_time)))
self.log.info(
"Scheduling forced reconnect in %d seconds. Connection will be refreshed at %s",
reconnect_interval,
time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(refresh_time)),
)
self.loop.call_later(reconnect_interval, lambda: asyncio.create_task(self._reconnect()))

async def _reconnect(self) -> None:
Expand Down

0 comments on commit 716222a

Please sign in to comment.