Bugfix when no closing quotations

This commit is contained in:
Simon 2018-08-09 22:48:56 -04:00
parent 4901236705
commit 1ddf310257

5
run.py
View File

@ -18,7 +18,10 @@ def process_comment(comment, bot):
text = PATTERN.sub(" ", comment.body).strip()
if text.startswith("u/opendirectories-bot") or text.startswith("/u/opendirectories-bot"):
lines = shlex.split(text,)
try:
lines = shlex.split(text)
except ValueError:
return
if len(lines) > 1:
text = lines[1]
if text.startswith("?"):