1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

fix time_t exceeding

This commit is contained in:
urlbot
2014-10-29 13:12:41 +01:00
parent 0811e30b82
commit e85cc3a148

View File

@@ -316,7 +316,13 @@ def command_teatimer(args):
ready = time.time() + steep ready = time.time() + steep
try:
logger('plugin', 'tea timer set to %s' % time.strftime('%F.%T', time.localtime(ready))) logger('plugin', 'tea timer set to %s' % time.strftime('%F.%T', time.localtime(ready)))
except ValueError as e:
return {
'msg': args['reply_user'] + ': time format error: ' + str(e)
}
register_event(ready, chat_write, args['reply_user'] + ': Your tea is ready!') register_event(ready, chat_write, args['reply_user'] + ': Your tea is ready!')
return { return {