From ecd09dee9f56f895a83d221ebebf7c4c10d1b00a Mon Sep 17 00:00:00 2001 From: nex Date: Tue, 3 Jan 2023 14:32:21 +0000 Subject: [PATCH] Fixed the screenshot command again --- cogs/other.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/other.py b/cogs/other.py index 7f3a828..071cc8d 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -67,7 +67,7 @@ class OtherCog(commands.Cog): driver = webdriver.Firefox(service=service, options=options) await ctx.edit(content="Loading website...") - await asyncio.to_thread(driver.get(website)) + await asyncio.to_thread(driver.get, website) await ctx.edit(content=f"Waiting {render_time:,} seconds to render...") await asyncio.sleep(render_time) await ctx.edit(content="Taking screenshot...") @@ -376,7 +376,7 @@ class OtherCog(commands.Cog): render_timeout ) except Exception as e: - console.log(f"Error taking screenshot: {e}") + console.print_exception() return await ctx.edit(content=f"Error: {e}") else: await ctx.edit(content="Here's your screenshot!", file=screenshot)