1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

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

This commit is contained in:
Mike Fährmann 2018-12-14 16:33:04 +01:00
parent 0be7ee3106
commit c14d44e1bc
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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