resume fail

This commit is contained in:
j 2012-02-22 21:25:43 +05:30
parent 036f5b1c9b
commit 59151b04fd

View file

@ -563,6 +563,7 @@ class API(ox.API):
def upload_chunks(self, url, filename, data=None): def upload_chunks(self, url, filename, data=None):
form = ox.MultiPartForm() form = ox.MultiPartForm()
resume = None
if os.path.exists(self._resume_file): if os.path.exists(self._resume_file):
with open(self._resume_file) as f: with open(self._resume_file) as f:
resume = json.load(f) resume = json.load(f)