Catch phishing sync failure
This commit is contained in:
parent
d647c8627c
commit
3c7b9e0f81
1 changed files with 5 additions and 2 deletions
|
@ -122,8 +122,11 @@ class Jarvis(Client):
|
|||
@listen()
|
||||
async def on_ready(self) -> None:
|
||||
"""NAFF on_ready override."""
|
||||
try:
|
||||
await self._sync_domains()
|
||||
self._update_domains.start()
|
||||
except Exception as e:
|
||||
self.logger.error("Failed to load anti-phishing", exc_info=e)
|
||||
self.logger.info("Logged in as {}".format(self.user)) # noqa: T001
|
||||
self.logger.info("Connected to {} guild(s)".format(len(self.guilds))) # noqa: T001
|
||||
self.logger.info("Current version: {}".format(const.__version__))
|
||||
|
|
Loading…
Add table
Reference in a new issue