From 4d43e5dccaeff26e9ecb1999c6cc87256d361f33 Mon Sep 17 00:00:00 2001 From: BitArtificial <45003472+BitArtificial@users.noreply.github.com> Date: Wed, 21 Nov 2018 21:08:12 +0800 Subject: [PATCH] Update cvpr_paper_download.py --- cvpr_paper_download.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cvpr_paper_download.py b/cvpr_paper_download.py index 940ba8a..299d734 100644 --- a/cvpr_paper_download.py +++ b/cvpr_paper_download.py @@ -58,12 +58,9 @@ def download(content,year_num,book_url_list,save_dir): f.write(chunk) f.flush r.close() - except KeyboardInterrupt: - key_interrupt=1 + except Exception: if os.path.exists(ab_name): os.remove(ab_name) - return key_interrupt - except Exception: key_interrupt=1 return key_interrupt print('{} content of {} year has downloaded successfully'.format(content,year))