[Zope-Checkins] SVN: Zope/trunk/src/Zope2/Startup/__init__.py Another place where Windows raises a different exception

Ross Patterson cvs-admin at zope.org
Sun Oct 21 15:50:42 UTC 2012


Log message for revision 128097:
  Another place where Windows raises a different exception
  

Changed:
  U   Zope/trunk/src/Zope2/Startup/__init__.py

-=-
Modified: Zope/trunk/src/Zope2/Startup/__init__.py
===================================================================
--- Zope/trunk/src/Zope2/Startup/__init__.py	2012-10-21 13:06:36 UTC (rev 128096)
+++ Zope/trunk/src/Zope2/Startup/__init__.py	2012-10-21 15:50:38 UTC (rev 128097)
@@ -292,7 +292,7 @@
                 f = open(self.cfg.pid_filename, 'w')
                 f.write(str(os.getpid()))
                 f.close()
-            except IOError:
+            except (IOError, WindowsError):
                 pass
 
     def unlinkPidFile(self):



More information about the Zope-Checkins mailing list