If an http error happens during the download of a file from figshare, the error is not handled and the program exits. The error should be handled and the download retried.
Steps To Reproduce
During the download of a file, if the connection is interrupted, the error will be thrown and the program will exit.
e.g., the error requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) is thrown on the following line.
''''
File "/home/u17/frios/ReBACH/figshare/Article.py", line 352, in __download_files
with requests.get(file['download_url'], stream=True, allow_redirects=True,
'''
Need a try catch around all blocks containing file downloads
Is there an existing issue for this?
Description of the bug
If an http error happens during the download of a file from figshare, the error is not handled and the program exits. The error should be handled and the download retried.
Steps To Reproduce
During the download of a file, if the connection is interrupted, the error will be thrown and the program will exit.
e.g., the error
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
is thrown on the following line. '''' File "/home/u17/frios/ReBACH/figshare/Article.py", line 352, in __download_files with requests.get(file['download_url'], stream=True, allow_redirects=True, '''Need a try catch around all blocks containing file downloads