From 8ed8196819f7889afbcabfd3d44b1fa34be63b90 Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 27 Dec 2024 23:58:14 -0800 Subject: [PATCH] Fix python 3.11 incompatiblity f-string weren't following 3.11 f-string syntax --- src/helpers/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/helpers.py b/src/helpers/helpers.py index d8deb91e..d8c92a6e 100644 --- a/src/helpers/helpers.py +++ b/src/helpers/helpers.py @@ -93,7 +93,7 @@ def prefix_slash_in_url_if_missing(url): if not url.startswith("/"): return f"/{url}" else: - return f"/{url.lstrip("/")}" + return f"/{url.lstrip('/')}" async def create_poll_callback(ctx, blog, post_id):