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,