From 63b26cdb767ae198b583c16ae9b515fd2226a8a8 Mon Sep 17 00:00:00 2001 From: swee Date: Sun, 13 Oct 2024 23:37:34 -0700 Subject: [PATCH] fix --- sweebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sweebot.py b/sweebot.py index 336e2f0..dd4d837 100644 --- a/sweebot.py +++ b/sweebot.py @@ -586,7 +586,7 @@ while True: e = get(i, headers=headers, timeout=10) if e.ok: soup = BeautifulSoup(e.text, 'html.parser') - multiline("(" + nick + ") " + soup.title.string if soup.title != None else "[No title provided]", channel) + multiline("(" + nick + ") " + (soup.title.string if soup.title != None else "[No title provided]"), channel) else: multiline("(" + nick + ") [HTTP " + str(e.status_code) + "]", channel) except rex.SSLError as ex: @@ -597,7 +597,7 @@ while True: e = get(i, headers=headers, timeout=10) if e.ok: soup = BeautifulSoup(e.text, 'html.parser') - multiline("(" + nick + ") " + soup.title.string if soup.title != None else "[No title provided]", channel) + multiline("(" + nick + ") " + (soup.title.string if soup.title != None else "[No title provided]"), channel) else: multiline("(" + nick + ") [HTTP " + str(e.status_code) + "]", channel) except: