Skip to content

Commit

Permalink
Merge pull request #18 from smathot/sebastiaan_edits
Browse files Browse the repository at this point in the history
Fix invalid call to warnings.warn()
  • Loading branch information
dschreij authored May 16, 2019
2 parents 85938ad + 4e431a2 commit ec6a09a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion QOpenScienceFramework/widgets/projecttree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec6a09a

Please sign in to comment.