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
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Gets the node name."""
|
"""Gets the node name."""
|
||||||
if self.type == "file":
|
if "extension" in self.data:
|
||||||
return "%s.%s" % (self.data["name"], self.data["extension"])
|
return "%s.%s" % (self.data["name"], self.data["extension"])
|
||||||
return self.data["name"]
|
return self.data["name"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue