[Zope3-checkins] CVS: Zope3/src/zope/app/fssync - syncer.py:1.20

Guido van Rossum guido@python.org
Sun, 25 May 2003 02:19:09 -0400


Update of /cvs-repository/Zope3/src/zope/app/fssync
In directory cvs.zope.org:/tmp/cvs-serv20891/app/fssync

Modified Files:
	syncer.py 
Log Message:
For some reason, getPath() can now also raise KeyError.  Catch it.


=== Zope3/src/zope/app/fssync/syncer.py 1.19 => 1.20 ===
--- Zope3/src/zope/app/fssync/syncer.py:1.19	Wed May 21 16:29:45 2003
+++ Zope3/src/zope/app/fssync/syncer.py	Sun May 25 02:19:09 2003
@@ -89,7 +89,7 @@
 
     try:
         objectPath = str(getPath(ob))
-    except TypeError:
+    except (TypeError, KeyError):
         objectPath = ''
     else:
         entries[name]['path'] = objectPath