From 4e431a21628433f334a24e1fc89aa7cbd24e77bb Mon Sep 17 00:00:00 2001 From: Sebastiaan Mathot Date: Wed, 15 May 2019 20:52:50 +0200 Subject: [PATCH] Fix invalid call to warnings.warn() --- QOpenScienceFramework/widgets/projecttree.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QOpenScienceFramework/widgets/projecttree.py b/QOpenScienceFramework/widgets/projecttree.py index cf4dabd..831fe22 100644 --- a/QOpenScienceFramework/widgets/projecttree.py +++ b/QOpenScienceFramework/widgets/projecttree.py @@ -697,7 +697,9 @@ def populate_tree(self, reply, parent=None, recursive=False): except RuntimeError: warnings.warn('Node referenced after deletion') except TypeError: - warnings.warn('Could not fetch node\'s status:', parent.text(0)) + warnings.warn( + 'Could not fetch node\'s status: {}'.format(parent.text(0)) + ) for entry in osf_response["data"]: # Add item to the tree. Check if object hasn't been deleted in the