Przeglądaj źródła

print msg when our socket breaks

tags/v0.1
Ben Kurtovic 13 lat temu
rodzic
commit
9d750c2ac1
1 zmienionych plików z 1 dodań i 0 usunięć
  1. +1
    -0
      bot.py

+ 1
- 0
bot.py Wyświetl plik

@@ -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



Ładowanie…
Anuluj
Zapisz