瀏覽代碼

print msg when our socket breaks

tags/v0.1
Ben Kurtovic 13 年之前
父節點
當前提交
9d750c2ac1
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      bot.py

+ 1
- 0
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



Loading…
取消
儲存