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