From 845b38578c505fd1fa92f1d9607df3d7471d158d Mon Sep 17 00:00:00 2001 From: MAX <63972751+ltzmax@users.noreply.github.com> Date: Sun, 21 Jan 2024 21:01:00 +0100 Subject: [PATCH] ops --- autopublisher/autopublisher.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/autopublisher/autopublisher.py b/autopublisher/autopublisher.py index 04eab1ce..06fba762 100644 --- a/autopublisher/autopublisher.py +++ b/autopublisher/autopublisher.py @@ -95,15 +95,15 @@ async def on_message_without_command(self, message: discord.Message) -> None: return if isinstance(message.channel, TextChannel): if message.channel.is_news(): - try: - await asyncio.sleep(0.5) - await asyncio.wait_for(message.publish(), timeout=60) - except ( - discord.HTTPException, - discord.Forbidden, - asyncio.TimeoutError, - ) as e: - log.error(e) + try: + await asyncio.sleep(0.5) + await asyncio.wait_for(message.publish(), timeout=60) + except ( + discord.HTTPException, + discord.Forbidden, + asyncio.TimeoutError, + ) as e: + log.error(e) @commands.group(aliases=["aph", "autopub"]) @commands.guild_only()