Fix Drive KeyError: 'extension' (#283)
This commit is contained in:
parent
f0322355eb
commit
852151ef5f
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class DriveNode(object):
|
|||
@property
|
||||
def name(self):
|
||||
"""Gets the node name."""
|
||||
if self.type == "file":
|
||||
if "extension" in self.data:
|
||||
return "%s.%s" % (self.data["name"], self.data["extension"])
|
||||
return self.data["name"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue