Skip to content

Commit

Permalink
hotfix invoking the Node tags method (vesoft-inc#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxins authored Feb 21, 2024
1 parent 91afe1b commit 251c253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nebula3/data/DataObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -1406,8 +1406,8 @@ def properties(self, tag=None):
:return: the properties
"""
if tag is None:
if len(self.tags) == 1:
tag = self.tags[0]
if len(self.tags()) == 1:
tag = self.tags()[0]
else:
raise InvalidKeyException("tag name is required")

Expand Down

0 comments on commit 251c253

Please sign in to comment.