From 55e0851eb8d17075735396eea59001d0bb1ef150 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Wed, 18 Nov 2009 19:33:34 -0700 Subject: [PATCH] temporary fix to log plugin --- plugins/log.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/log.py b/plugins/log.py index 8629cc9..aec84ad 100644 --- a/plugins/log.py +++ b/plugins/log.py @@ -101,7 +101,10 @@ def log(bot, input): if beau == '': # don't log this return - print '%s %s %s' % (timestamp, input.chan, beau) + try: + print '%s %s %s' % (timestamp, input.chan, beau) + except Exception, e: + print e, timestamp, input.chan, beau if input.chan: fd = get_log_fd(bot.persist_dir, input.server, input.chan)