From 64c0977eb061dadc3be1d6c0d2ad36c8be5a5c26 Mon Sep 17 00:00:00 2001 From: Riley Housden Date: Mon, 22 Aug 2022 14:42:51 -0400 Subject: [PATCH] fix issue with book_error_handler --- ext/libcal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/libcal.py b/ext/libcal.py index eec9da5..aa903ce 100644 --- a/ext/libcal.py +++ b/ext/libcal.py @@ -86,7 +86,7 @@ async def book_error_handler(event: lightbulb.CommandErrorEvent): await event.context.respond(embed=embed) embed.title = "Image match failed!" embed.description = f"I failed to find any bookings in the attached image." - embed.add_field("Image text", get_image_string(event.context.options.img)) + embed.add_field("Image text", get_image_string(event.context.options.img.read())) embed.set_image(event.context.options.img) owners = event.context.bot.fetch_owner_ids() for user_id in owners: