added check for key in vfs.py - Thanks Martijn!

This commit is contained in:
robweber
2012-07-26 12:48:14 -05:00
parent 9ac69e10db
commit 934f9b63e8
3 changed files with 6 additions and 2 deletions

View File

@ -101,7 +101,7 @@ def listdir(path, extra_metadata=False):
jsonobject = json.loads(json_response)
if jsonobject['result']['files']:
if jsonobject.has_key('result') and jsonobject['result']['files']:
for item in jsonobject['result']['files']: