From 7019b9ffe5ad87ef0876b66189ba29409bba534d Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 17 May 2024 00:14:33 -0400 Subject: [PATCH] fix(seautils): catch an UnboundLocalError --- seautils/seautils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seautils/seautils.py b/seautils/seautils.py index 897baf5..3bdf8b4 100644 --- a/seautils/seautils.py +++ b/seautils/seautils.py @@ -76,7 +76,7 @@ class SeaUtils(commands.Cog): content.append(f"**Page {i}/{max_i}**\n{cf.box(page, lang='py')}") i += 1 await SimpleMenu(pages=content, disable_after_timeout=True, timeout=180).start(ctx) - except (OSError, AttributeError): + except (OSError, AttributeError, UnboundLocalError): if ctx.embed_requested(): embed = Embed(title="Object not found!", color=await ctx.embed_color()) await ctx.send(embed=embed, reference=ctx.message.to_reference(fail_if_not_exists=False))