← Back to team overview

beeseek-devs team mailing list archive

[Branch ~beeseek-devs/beeseek/trunk] Rev 186: Remove try...except...finally block in session.py.

 

------------------------------------------------------------
revno: 186
committer: Andrea Corbellini <andrea.corbellini@xxxxxxxxxxx>
branch nick: trunk
timestamp: Sun 2008-11-16 16:36:45 +0100
message:
  Remove try...except...finally block in session.py.
modified:
  beeseek/session.py

=== modified file 'beeseek/session.py'
--- a/beeseek/session.py	2008-11-15 17:34:58 +0000
+++ b/beeseek/session.py	2008-11-16 15:36:45 +0000
@@ -162,13 +162,15 @@
         self.setup()
         server = self.server
 
+        # try...except...finally does not work well with python2.4
         try:
-            while not server.closed:
-                peer = server.accept()
-                log.debug('Accepted new connection')
-                thread.start_new_thread(peer.start_loop, ())
-        except KeyboardInterrupt:
-            log.debug('Caught interrupt signal')
+            try:
+                while not server.closed:
+                    peer = server.accept()
+                    log.debug('Accepted new connection')
+                    thread.start_new_thread(peer.start_loop, ())
+            except KeyboardInterrupt:
+                log.debug('Caught interrupt signal')
         finally:
             del self.pidfile
 



--
BeeSeek mainline
https://code.launchpad.net/~beeseek-devs/beeseek/trunk

You are receiving this branch notification because you are subscribed to it.