diff --git a/ameliabot/owncast.py b/ameliabot/owncast.py index afc44cc..4e3b3a4 100644 --- a/ameliabot/owncast.py +++ b/ameliabot/owncast.py @@ -117,7 +117,10 @@ def process_chat(data): if findme in command_reply: if placeholders[placeholder] == "": command_reply = "%s required" % placeholder.upper() - command_reply = command_reply.replace( - findme, placeholders[placeholder]) + try: + command_reply = command_reply.replace( + findme, placeholders[placeholder]) + except TypeError: + command_reply = "Target not specified." return command_reply