Skip to content

Commit

Permalink
Fixed Error
Browse files Browse the repository at this point in the history
  • Loading branch information
rwolf2467 committed Nov 24, 2024
1 parent 5e397d2 commit 704f06f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ async def check_message():
return {"error": "access denied"}

message = data["message"]
cid = data["cid"]
gid = data["gid"]
try:
cid = data["cid"]
gid = data["gid"]
except:
cid = None
gid = None
results = check_chatfilter(message, badwords, goodwords, cid, gid)

end_time = time.time()
Expand Down

0 comments on commit 704f06f

Please sign in to comment.