diff --git a/Cogs/Configuration/Configuration.py b/Cogs/Configuration/Configuration.py index be6c12d..341af7b 100644 --- a/Cogs/Configuration/Configuration.py +++ b/Cogs/Configuration/Configuration.py @@ -86,7 +86,7 @@ async def callback(self, interaction: discord.Interaction): name=f"{interaction.guild.name}", icon_url=interaction.guild.icon ) embed.set_thumbnail(url=interaction.guild.icon) - embed.description = "> This is where you can toggle your server's modules! If you wanna know more about what these modules do head to the [documentation](https:/docs.astrobirb.dev)" + embed.description = "> This is where you can toggle your server's modules! If you wanna know more about what these modules do head to the [documentation](https://docs.astrobirb.dev)" view.add_item( ModuleToggle( @@ -214,10 +214,10 @@ async def callback(self, interaction: discord.Interaction): interaction.user, ) ) - except Exception as e: + except Exception: import traceback - print(traceback.format_exc(e)) + print(traceback.format_exc()) # should take no arguments? same in modmail elif selection == "Forums": from Cogs.Configuration.Components.Forums import ForumsOptions, ForumsEmbed diff --git a/Cogs/Events/modmail.py b/Cogs/Events/modmail.py index 4db3160..7a585d9 100644 --- a/Cogs/Events/modmail.py +++ b/Cogs/Events/modmail.py @@ -20,7 +20,7 @@ async def Reply( try: Channel = await Guild.fetch_channel(int(ModmailData.get("channel_id", 0))) except (discord.NotFound, discord.HTTPException): - traceback.format_exc(e) + traceback.format_exc() # same here return await self.db["modmail"].delete_one({"user_id": message.author.id}) if not Channel: return await message.add_reaction("⚠️") @@ -44,12 +44,12 @@ async def Reply( f"<:messagereceived:1201999712593383444> {message.author.name}: {message.content}", files=files, ) - except Exception as e: + except Exception: return await message.add_reaction("⚠️") return await message.add_reaction("📨") try: await Channel.send(embed=embed, files=files) - except Exception as e: + except Exception: print(e) return await message.add_reaction("⚠️") return await message.add_reaction("📨") @@ -646,8 +646,8 @@ async def on_message(self, message: discord.Message): ) await Message.edit(view=view, embed=embed, content=None) - except Exception as e: - traceback.format_exc(e) + except Exception: + traceback.format_exc() # same here again else: Config = await self.client.config.find_one( {"_id": Modmail.get("guild_id")} diff --git a/Cogs/Modules/modmail.py b/Cogs/Modules/modmail.py index 9b817c2..2953436 100644 --- a/Cogs/Modules/modmail.py +++ b/Cogs/Modules/modmail.py @@ -446,8 +446,8 @@ async def Reply( ephemeral=True, ) return - except Exception as e: - traceback.print_exc(e) + except Exception: + traceback.print_exc() # same here as config and modmail @modmail.command(description="Close a modmail channel.") @app_commands.describe(reason="The reason for closing the modmail channel.")