From e2d8e05ab553cdb8732e598a7e3fa6e8eff408c1 Mon Sep 17 00:00:00 2001 From: Context 77 <126421199+ctx77@users.noreply.github.com> Date: Sat, 3 Aug 2024 01:46:23 +0200 Subject: [PATCH] fstrings for titleObs --- FaustBot/Modules/TitleObserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FaustBot/Modules/TitleObserver.py b/FaustBot/Modules/TitleObserver.py index 10e91bf..1dac8ec 100644 --- a/FaustBot/Modules/TitleObserver.py +++ b/FaustBot/Modules/TitleObserver.py @@ -76,7 +76,7 @@ class TitleObserver(PrivMsgObserverPrototype): else: # with open("content.html", "w") as file: # file.write(content) - raise Exception("Could not Parse Title for {}".format(url)) + raise Exception(f"Could not Parse Title for {url}") title = html.unescape(title) title = title.replace("\n", " ").replace("\r", "") @@ -84,5 +84,5 @@ class TitleObserver(PrivMsgObserverPrototype): title = title.replace(">", ">") title = title.replace("&", "&") if title == "": - raise Exception("Empty Title for {}".format(url)) + raise Exception(f"Empty Title for {url}") return title