mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +01:00
fix downloader error handling
RequestException being a subclass of OSError caused all exceptions during file downloads to be ignored/re-raised.
This commit is contained in:
parent
92027f67f9
commit
42e948584d
@ -12,6 +12,7 @@ import os
|
||||
import time
|
||||
import logging
|
||||
from .. import config, util
|
||||
from requests.exceptions import RequestException
|
||||
|
||||
|
||||
class DownloaderBase():
|
||||
@ -101,9 +102,7 @@ class DownloaderBase():
|
||||
# download content
|
||||
try:
|
||||
self.receive(file)
|
||||
except OSError:
|
||||
raise
|
||||
except Exception as exc:
|
||||
except RequestException as exc:
|
||||
msg = exc
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user