Very naive and basic target error capture

This commit is contained in:
Siina Mashek 2022-04-19 14:03:52 +03:00
parent 6503f66114
commit 4cf843aa36

View File

@ -117,7 +117,10 @@ def process_chat(data):
if findme in command_reply: if findme in command_reply:
if placeholders[placeholder] == "": if placeholders[placeholder] == "":
command_reply = "%s required" % placeholder.upper() command_reply = "%s required" % placeholder.upper()
command_reply = command_reply.replace( try:
findme, placeholders[placeholder]) command_reply = command_reply.replace(
findme, placeholders[placeholder])
except TypeError:
command_reply = "Target not specified."
return command_reply return command_reply