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:
parent
0be7ee3106
commit
c14d44e1bc
@ -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…
Reference in New Issue
Block a user