Update sweebridge.py

This commit is contained in:
Nova Cat 2025-01-08 13:53:25 -08:00
parent 7591578349
commit 9127794c02

View file

@ -68,7 +68,10 @@ libera.connect_irc(
) )
userlist = {} userlist = {}
def hook(url:str, json:dict): 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): def parse_content(text:str, platform:int, target:str):
# e = [ # e = [
# Text for use in IRC, # Text for use in IRC,