Skip to content

Commit

Permalink
fix(membercount): updating deleted channel
Browse files Browse the repository at this point in the history
  • Loading branch information
ZRunner committed Jan 1, 2024
1 parent 932efe9 commit f50ddc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fcts/serverconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ async def update_memberchannel(self, guild: discord.Guild):
await channel.edit(name=text, reason=await self.bot._(guild.id, "logs.reason.memberchan"))
self.membercounter_pending[guild.id] = round(time.time()) + 5*60 # cooldown 5min
return True
except discord.Forbidden:
except (discord.Forbidden, discord.NotFound):
pass
except Exception as err:
self.bot.dispatch("error", err, f"for guild {guild.id}")
self.bot.dispatch("error", err, f"Updating membercount channel {channel.id} in guild {guild.id}")
return False

# ---- DATABASE ACCESS ----
Expand Down

0 comments on commit f50ddc7

Please sign in to comment.