Permalink
Browse files

ploneprune: ignore items with no path

  • Loading branch information...
1 parent 072c9c3 commit e05933da24003e70be999692eb9d7dcf122a4987 Dylan Jay committed Apr 18, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 transmogrify/ploneremote/remoteprune.py
View
3 transmogrify/ploneremote/remoteprune.py
@@ -91,6 +91,9 @@ def __iter__(self):
proxy = xmlrpclib.ServerProxy(self.constructRemoteURL(item))
path = self.extractPath(item)
+ if not path:
+ yield item; continue
+
if not self.condition(item, proxy=proxy):
self.logger.info('%s skipping (condition)'%(path))
yield item; continue

0 comments on commit e05933d

Please sign in to comment.