Very naive and basic target error capture
This commit is contained in:
parent
6503f66114
commit
4cf843aa36
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue