From cab04a60142f56124d1367e28ee7cba0ed27c40e Mon Sep 17 00:00:00 2001 From: urlbot Date: Sat, 19 Sep 2015 23:52:07 +0200 Subject: [PATCH] wrap time adding since some people tried to steep their tea infinitely --- plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.py b/plugins.py index ab80649..4cb79d0 100644 --- a/plugins.py +++ b/plugins.py @@ -447,7 +447,7 @@ def command_teatimer(argv, **args): try: log.plugin('tea timer set to %s' % time.strftime('%F.%T', time.localtime(ready))) - except ValueError as e: + except (ValueError, OverflowError) as e: return { 'msg': args['reply_user'] + ': time format error: ' + str(e) }