Skip to content

Commit 750bb57

Browse files
committed
Trying to fix TypeError
1 parent ee95c64 commit 750bb57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

QOpenScienceFramework/widgets/projecttree.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,9 @@ def populate_tree(self, reply, parent=None, recursive=False):
695695
parent.setChildIndicatorPolicy(
696696
QtWidgets.QTreeWidgetItem.DontShowIndicatorWhenChildless)
697697
except RuntimeError:
698-
pass
698+
warnings.warn('Node referenced after deletion:', e)
699+
except TypeError:
700+
warnings.warn('Could not fetch node\'s status:', parent.text(0))
699701

700702
for entry in osf_response["data"]:
701703
# Add item to the tree. Check if object hasn't been deleted in the

0 commit comments

Comments
 (0)