gnome-games r8380 - trunk/glchess/src/lib



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

Log:
Catch keyboard interrupts in AI monitor process

Modified:
   trunk/glchess/src/lib/ai.py

Modified: trunk/glchess/src/lib/ai.py
==============================================================================
--- trunk/glchess/src/lib/ai.py	(original)
+++ trunk/glchess/src/lib/ai.py	Wed Dec 24 12:31:04 2008
@@ -455,7 +455,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]