[downloader:common] retry downloads on SSL errors (#130)

server
Mike Fährmann 6 years ago
parent 0be7ee3106
commit c14d44e1bc
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -13,6 +13,7 @@ import time
import logging
from .. import config, util, exception
from requests.exceptions import RequestException
from ssl import SSLError
class DownloaderBase():
@ -109,7 +110,7 @@ class DownloaderBase():
# download content
try:
self.receive(file)
except RequestException as exc:
except (RequestException, SSLError) as exc:
msg = exc
print()
continue

Loading…
Cancel
Save