prevent crash when loading unavailable downloader (#405)
This commit is contained in:
@@ -297,7 +297,7 @@ class DownloadJob(Job):
|
|||||||
instance = None
|
instance = None
|
||||||
self.log.error("'%s:' URLs are not supported/enabled", scheme)
|
self.log.error("'%s:' URLs are not supported/enabled", scheme)
|
||||||
|
|
||||||
if klass.scheme == "http":
|
if klass and klass.scheme == "http":
|
||||||
self.downloaders["http"] = self.downloaders["https"] = instance
|
self.downloaders["http"] = self.downloaders["https"] = instance
|
||||||
else:
|
else:
|
||||||
self.downloaders[scheme] = instance
|
self.downloaders[scheme] = instance
|
||||||
|
|||||||
Reference in New Issue
Block a user