... | ... |
@@ -281,7 +281,7 @@ class InvalidationBatch(object): |
281 | 281 |
tree = ET.Element("InvalidationBatch") |
282 | 282 |
|
283 | 283 |
for path in self.paths: |
284 |
- if path[0] != "/": |
|
284 |
+ if len(path) < 1 or path[0] != "/": |
|
285 | 285 |
path = "/" + path |
286 | 286 |
appendXmlTextNode("Path", path, tree) |
287 | 287 |
appendXmlTextNode("CallerReference", self.reference, tree) |