summaryrefslogtreecommitdiffstats
path: root/modules/tell.py
diff options
context:
space:
mode:
authorSean B. Palmer <sbp@aldebaran.local>2011-01-15 14:52:37 +0000
committerSean B. Palmer <sbp@aldebaran.local>2011-01-15 14:52:37 +0000
commit4608c57ea861e86f2bbae26dc55169f7c33e5ab4 (patch)
tree603a5e39c82df4c31288bb8026aab10d4d57f0c0 /modules/tell.py
parent4bf7150491ccc763d559a79db242adef9709f04a (diff)
downloadbot-4608c57ea861e86f2bbae26dc55169f7c33e5ab4.tar.gz
bot-4608c57ea861e86f2bbae26dc55169f7c33e5ab4.tar.bz2
bot-4608c57ea861e86f2bbae26dc55169f7c33e5ab4.zip
Generic error message for services that don't return plain text.
Diffstat (limited to 'modules/tell.py')
-rwxr-xr-xmodules/tell.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/tell.py b/modules/tell.py
index 2f39986..741c58d 100755
--- a/modules/tell.py
+++ b/modules/tell.py
@@ -29,7 +29,8 @@ def loadReminders(fn):
for line in f:
line = line.strip()
if line:
- tellee, teller, verb, timenow, msg = line.split('\t', 4)
+ try: tellee, teller, verb, timenow, msg = line.split('\t', 4)
+ except ValueError: continue # @@ hmm
result.setdefault(tellee, []).append((teller, verb, timenow, msg))
f.close()
return result