From 9127794c0246d93e994d1c4d5d1ed007c686e4af Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 8 Jan 2025 13:53:25 -0800 Subject: [PATCH] Update sweebridge.py --- sweebridge.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sweebridge.py b/sweebridge.py index f227ee1..fab29d4 100644 --- a/sweebridge.py +++ b/sweebridge.py @@ -68,7 +68,10 @@ libera.connect_irc( ) userlist = {} def hook(url:str, json:dict): - return requests.post(url=url, json=json) + try: + return requests.post(url=url, json=json) + except: + return False def parse_content(text:str, platform:int, target:str): # e = [ # Text for use in IRC,