From 9d750c2ac110c942a487ea983e47c370c74543db Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 14 Apr 2011 17:56:56 -0400 Subject: [PATCH] print msg when our socket breaks --- bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.py b/bot.py index 539c33b..1216e8f 100644 --- a/bot.py +++ b/bot.py @@ -17,6 +17,7 @@ def main(): try: read_buffer = read_buffer + actions.get() except RuntimeError: # socket broke + print "socket has broken, sleeping for a minute and restarting..." time.sleep(60) # sleep for sixty seconds return # then exit our loop and restart the bot