Skip to content

Commit

Permalink
Update cvpr_paper_download.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BitArtificial authored Nov 21, 2018
1 parent b10ef4c commit 4d43e5d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cvpr_paper_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4d43e5d

Please sign in to comment.