Fix error in time parsing

This commit is contained in:
Jim Paris 2013-04-06 19:12:17 -04:00
parent ae9fe89759
commit 06038062a2

View File

@ -70,7 +70,7 @@ def parse_time(toparse):
try:
if toparse[0] == '@':
return int(toparse[1:])
except (ValueError, KeyError):
except (ValueError, KeyError, IndexError):
pass
# If string isn't "now" and doesn't contain at least 4 digits,