diff --git a/seautils/seautils.py b/seautils/seautils.py index 304fd70..3bbf5cf 100644 --- a/seautils/seautils.py +++ b/seautils/seautils.py @@ -80,6 +80,8 @@ class SeaUtils(commands.Cog): text = self.format_src(type(obj)) elif obj := ctx.bot.get_command(object): text = self.format_src(obj) + else: + raise AttributeError temp_content = cf.pagify( text=cleanup_code(text), escape_mass_mentions=True,