Skip to content

Commit ec6a09a

Browse files
authored
Merge pull request #18 from smathot/sebastiaan_edits
Fix invalid call to warnings.warn()
2 parents 85938ad + 4e431a2 commit ec6a09a

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
@@ -697,7 +697,9 @@ def populate_tree(self, reply, parent=None, recursive=False):
697697
except RuntimeError:
698698
warnings.warn('Node referenced after deletion')
699699
except TypeError:
700-
warnings.warn('Could not fetch node\'s status:', parent.text(0))
700+
warnings.warn(
701+
'Could not fetch node\'s status: {}'.format(parent.text(0))
702+
)
701703

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

0 commit comments

Comments
 (0)