From 7ba255369846499c71895bb55d965563d97f8402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Wed, 13 Apr 2022 01:34:34 +0200 Subject: [PATCH] Format code --- discord_embed/main.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/discord_embed/main.py b/discord_embed/main.py index 7df406e..0152c28 100644 --- a/discord_embed/main.py +++ b/discord_embed/main.py @@ -136,7 +136,6 @@ async def upload_file(file: UploadFile = File(...)) -> Dict[str, str]: hook.send(f"{domain_url} was uploaded.") return {"html_url": domain_url} except Exception as e: - # TODO: Change response code to 400. hook.send(f"Something went wrong for {domain_url}:\n{e}") return {"error": f"Something went wrong: {e}"} @@ -169,7 +168,13 @@ async def main(): """ -def generate_html_for_videos(url: str, width: int, height: int, screenshot: str, filename: str) -> str: +def generate_html_for_videos( + url: str, + width: int, + height: int, + screenshot: str, + filename: str, +) -> str: """Generate HTML for video files. This is what we will send to other people on Discord.