Skip to content

Commit

Permalink
Fix python 3.11 incompatiblity
Browse files Browse the repository at this point in the history
f-string weren't following 3.11 f-string syntax
  • Loading branch information
syeopite committed Dec 28, 2024
1 parent 1f59497 commit 8ed8196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8ed8196

Please sign in to comment.