upload() minor tidy up

This commit is contained in:
richard 2013-03-12 17:00:30 +00:00
parent 38db6760d5
commit be7fa68da8

View file

@ -444,9 +444,7 @@ class Mega(object):
#determine storage node #determine storage node
if dest is None: if dest is None:
#if none set, upload to cloud drive node #if none set, upload to cloud drive node
if hasattr(self, 'root_id'): if not hasattr(self, 'root_id'):
root_id = getattr(self, 'root_id')
else:
self.get_files() self.get_files()
dest = self.root_id dest = self.root_id