Skip to content

Commit

Permalink
Ensure node is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlatwe committed Jul 8, 2019
1 parent c8a0468 commit 3d23f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avalon/tools/cbloader/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _versionschanged(self):
rows = selection.selectedRows(column=active.column())
if active in rows:
node = active.data(subsets.model.NodeRole)
if not node.get("isGroup"):
if node is not None and not node.get("isGroup"):
version = node['version_document']['_id']

self.data['model']['version'].set_version(version)
Expand Down

0 comments on commit 3d23f6e

Please sign in to comment.