Generic error message for services that don't return plain text.

This commit is contained in:
Sean B. Palmer
2011-01-15 14:52:37 +00:00
parent 4bf7150491
commit 4608c57ea8
2 changed files with 8 additions and 2 deletions

View File

@@ -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