File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,18 @@ async def auto_update(self):
141
141
channel_id = server_vars .get ("tracking_channel" , guild .id )
142
142
channel = bot .get_channel (channel_id )
143
143
if channel is not None :
144
- await channel .send (CM_SUPPRESSED_MESSAGE )
145
- await channel .send (
146
- NEXT_AUTO_UPDATE .format (
147
- math .floor (cog .auto_update .next_iteration .timestamp ())
144
+ try :
145
+ await channel .send (CM_SUPPRESSED_MESSAGE )
146
+ await channel .send (
147
+ NEXT_AUTO_UPDATE .format (
148
+ math .floor (
149
+ cog .auto_update .next_iteration .timestamp ()
150
+ )
151
+ )
148
152
)
149
- )
153
+ except discord .errors .HTTPException :
154
+ logging .warning (LOG_GUILD_UNAVAILABLE )
155
+ continue
150
156
return
151
157
for guild in bot .guilds :
152
158
channel_id = server_vars .get ("tracking_channel" , guild .id )
You can’t perform that action at this time.
0 commit comments