gnome-games r8381 - branches/gnome-2-24/glchess/src/lib



Author: rancell
Date: Wed Dec 24 12:34:43 2008
New Revision: 8381
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8381&view=rev

Log:
Catch keyboard interrupts in AI monitor process

Modified:
   branches/gnome-2-24/glchess/src/lib/ai.py

Modified: branches/gnome-2-24/glchess/src/lib/ai.py
==============================================================================
--- branches/gnome-2-24/glchess/src/lib/ai.py	(original)
+++ branches/gnome-2-24/glchess/src/lib/ai.py	Wed Dec 24 12:34:43 2008
@@ -454,7 +454,7 @@
                 
                     # Bridge information between the application and the engine
                     os.write(targets[fd], data)
-        except Exception, e:
+        except:
             # Kill the child and exit
             try:
                 os.kill(enginePID, signal.SIGQUIT)



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