wrap time adding since some people tried to steep their tea infinitely

This commit is contained in:
urlbot
2015-09-19 23:52:07 +02:00
parent 9a8721265b
commit cab04a6014

View File

@@ -447,7 +447,7 @@ def command_teatimer(argv, **args):
try: try:
log.plugin('tea timer set to %s' % time.strftime('%F.%T', time.localtime(ready))) log.plugin('tea timer set to %s' % time.strftime('%F.%T', time.localtime(ready)))
except ValueError as e: except (ValueError, OverflowError) as e:
return { return {
'msg': args['reply_user'] + ': time format error: ' + str(e) 'msg': args['reply_user'] + ': time format error: ' + str(e)
} }