forked from open-webui/open-webui
chore: py formatting
This commit is contained in:
parent
d4fabeee3c
commit
5af8d0612a
12 changed files with 77 additions and 45 deletions
|
@ -2,6 +2,7 @@ import json
|
|||
import requests
|
||||
from config import VERSION, WEBUI_FAVICON_URL, WEBUI_NAME
|
||||
|
||||
|
||||
def post_webhook(url: str, message: str, event_data: dict) -> bool:
|
||||
try:
|
||||
payload = {}
|
||||
|
@ -43,4 +44,4 @@ def post_webhook(url: str, message: str, event_data: dict) -> bool:
|
|||
return True
|
||||
except Exception as e:
|
||||
print(e)
|
||||
return False
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue