[Checkins] SVN: zc.resumelb/branches/jinty-fix-worker-shutdown-race/src/zc/resumelb/zk.py Actually import the exception. sigh, untested code is broken code.
Brian Sutherland
cvs-admin at zope.org
Tue Oct 23 00:39:09 UTC 2012
Log message for revision 128135:
Actually import the exception. sigh, untested code is broken code.
Changed:
U zc.resumelb/branches/jinty-fix-worker-shutdown-race/src/zc/resumelb/zk.py
-=-
Modified: zc.resumelb/branches/jinty-fix-worker-shutdown-race/src/zc/resumelb/zk.py
===================================================================
--- zc.resumelb/branches/jinty-fix-worker-shutdown-race/src/zc/resumelb/zk.py 2012-10-22 17:42:12 UTC (rev 128134)
+++ zc.resumelb/branches/jinty-fix-worker-shutdown-race/src/zc/resumelb/zk.py 2012-10-23 00:39:05 UTC (rev 128135)
@@ -28,6 +28,7 @@
import time
import zc.parse_addr
import zc.zk
+from zookeeper import NoNodeException
def worker(app, global_conf, zookeeper, path, loggers=None, address=':0',
threads=None, backdoor=False, description=None, version=None,
@@ -213,7 +214,7 @@
try:
version = zk.get_properties(
path+'/workers/providers/'+addr).get('version')
- except zookeeper.NoNodeException:
+ except NoNodeException:
# If nodes are shut down in quick succession we can get here
continue
r[zc.parse_addr.parse_addr(addr)] = version
More information about the checkins
mailing list