From 3b9b88e1c2c168106700c5f00d34355309749cc9 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 1 May 2013 20:56:33 +0100 Subject: [PATCH] Issue #31 fix --- mega/mega.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mega/mega.py b/mega/mega.py index 670f138..d588b56 100644 --- a/mega/mega.py +++ b/mega/mega.py @@ -504,6 +504,7 @@ class Mega(object): file_mac = [0, 0, 0, 0] upload_progress = 0 + completion_file_handle = None for chunk_start, chunk_size in sorted(get_chunks(file_size).items()): chunk = input_file.read(chunk_size) upload_progress += len(chunk)