While loops are scary, so just in case ...

This commit is contained in:
Veronica K. B. Olsen
2019-05-19 00:15:18 +02:00
parent 33fe71ae62
commit f59a815a02
+2
View File
@@ -381,6 +381,8 @@ class NWProject():
tHandle = iterItems[n]
tItem = self.getItem(tHandle)
n += 1
if n > 10000:
return # Just in case
if tItem.parHandle is None:
# Item is a root, or already been identified as an orphaned item
sentItems.append(tHandle)