From be7fa68da8824d877c5ca7e3ebff670b8d37081a Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 12 Mar 2013 17:00:30 +0000 Subject: [PATCH] upload() minor tidy up --- mega/mega.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mega/mega.py b/mega/mega.py index f6b094b..0183fff 100644 --- a/mega/mega.py +++ b/mega/mega.py @@ -444,9 +444,7 @@ class Mega(object): #determine storage node if dest is None: #if none set, upload to cloud drive node - if hasattr(self, 'root_id'): - root_id = getattr(self, 'root_id') - else: + if not hasattr(self, 'root_id'): self.get_files() dest = self.root_id