Skip to content

Commit

Permalink
pyroblack: 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 16, 2024
1 parent 159b0b2 commit d75e78e
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions pyrogram/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,24 @@ async def restart(self):
await self.client.load_session()
log.info(
f"[pyroblack] Client [{self.client.name}] re-starting got SQLite error, connected to DB successfully. try %s; exc: %s %s",
try_, type(e).__name__, e)
try_,
type(e).__name__,
e,
)
except Exception as e:
log.warning(f"[pyroblack] Client [{self.client.name}] failed re-starting SQlite DB, try %s; exc: %s %s",
try_, type(e).__name__, e)
log.warning(
f"[pyroblack] Client [{self.client.name}] failed re-starting SQlite DB, try %s; exc: %s %s",
try_,
type(e).__name__,
e,
)
except Exception as e:
log.warning(f"[pyroblack] Client [{self.client.name}] failed re-starting, try %s; exc: %s %s", try_, type(e).__name__, e)
log.warning(
f"[pyroblack] Client [{self.client.name}] failed re-starting, try %s; exc: %s %s",
try_,
type(e).__name__,
e,
)
break
finally:
self.currently_restarting = False
Expand Down

0 comments on commit d75e78e

Please sign in to comment.