1
0
Fork 0
mirror of https://github.com/mwalbeck/podfox.git synced 2025-04-10 08:37:29 +00:00

Exception handling for connections error and timeouts

This commit is contained in:
Magnus Walbeck 2017-07-01 18:10:30 +02:00
parent fce25a5532
commit 86f1a6bd45

View file

@ -39,7 +39,10 @@ import re
from email.utils import parsedate
from time import time, mktime, gmtime, strftime, sleep
<<<<<<< cc4abf40a2e4fe00e52aff8d4e1c21d2219455f6
from tqdm import tqdm
=======
>>>>>>> Exception handling for connections error and timeouts
CONFIGURATION = {}
@ -331,7 +334,7 @@ def download_single(folder, url, filename):
if 'connection_retries' in CONFIGURATION:
connection_retries = CONFIGURATION['connection_retries']
else:
connection_retries = 9
connection_retries = 3
if filename is None:
filename = get_original_filename(url)