[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Break on KeyboardInterrupt.



commit ccc61725840ef668ef444100cd1c13271c194097
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Sat May 4 22:34:43 2013 -0700

    Break on KeyboardInterrupt.
---
 facilitator/facilitator-email-poller |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/facilitator/facilitator-email-poller b/facilitator/facilitator-email-poller
index 2e240e0..50e3f7d 100755
--- a/facilitator/facilitator-email-poller
+++ b/facilitator/facilitator-email-poller
@@ -330,6 +330,8 @@ while True:
     except imaplib.IMAP4.abort, e:
         # Try again after a disconnection.
         log(u"lost server connection: %s" % str(e))
+    except KeyboardInterrupt:
+        break
 
     # Don't reconnect too fast.
     t = login_limit.time_to_wait()



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits