mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-24 01:14:13 +00:00
Add generic exception handler
This commit is contained in:
parent
dc26f56221
commit
d658672006
1 changed files with 2 additions and 0 deletions
|
@ -65,4 +65,6 @@ class WorldTime(discord.Client):
|
||||||
logPrint("Report", "Reported count to Discord Bots.")
|
logPrint("Report", "Reported count to Discord Bots.")
|
||||||
except aiohttp.ClientError as e:
|
except aiohttp.ClientError as e:
|
||||||
logPrint("Report", "Discord Bots API report failed: {}".format(e))
|
logPrint("Report", "Discord Bots API report failed: {}".format(e))
|
||||||
|
except Exception as e:
|
||||||
|
logPrint("Report", "Unknown error on Discord Bots API report.")
|
||||||
await asyncio.sleep(21600) # Repeat once every six hours
|
await asyncio.sleep(21600) # Repeat once every six hours
|
Loading…
Reference in a new issue