Adding a bug trap too ...
This commit is contained in:
@@ -383,7 +383,10 @@ class NWProject():
|
|||||||
n += 1
|
n += 1
|
||||||
if n > 10000:
|
if n > 10000:
|
||||||
return # Just in case
|
return # Just in case
|
||||||
if tItem.parHandle is None:
|
if tItem is None:
|
||||||
|
# Technically a bug since treeOrder is built from the same data as projTree
|
||||||
|
continue
|
||||||
|
elif tItem.parHandle is None:
|
||||||
# Item is a root, or already been identified as an orphaned item
|
# Item is a root, or already been identified as an orphaned item
|
||||||
sentItems.append(tHandle)
|
sentItems.append(tHandle)
|
||||||
yield tItem
|
yield tItem
|
||||||
|
|||||||
Reference in New Issue
Block a user