From 8c7fe151b1622102a44ef942b851ec85fae63ff6 Mon Sep 17 00:00:00 2001 From: Terry Yin Date: Thu, 2 May 2013 23:05:18 +0800 Subject: [PATCH] wrong number of argument for string format --- src/you_get/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/common.py b/src/you_get/common.py index a22e1655..7f708511 100644 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -235,7 +235,7 @@ def url_save(url, filepath, bar, refer = None, is_part = False, faker = False): if bar: bar.update_received(len(buffer)) - assert received == os.path.getsize(temp_filepath), '%s == %s == %s' % (received, os.path.getsize(temp_filepath)) + assert received == os.path.getsize(temp_filepath), '%s == %s == %s' % (received, os.path.getsize(temp_filepath), temp_filepath) if os.access(filepath, os.W_OK): os.remove(filepath) # on Windows rename could fail if destination filepath exists