prevent crash when loading unavailable downloader (#405)
This commit is contained in:
@@ -297,7 +297,7 @@ class DownloadJob(Job):
|
||||
instance = None
|
||||
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
|
||||
else:
|
||||
self.downloaders[scheme] = instance
|
||||
|
||||
Reference in New Issue
Block a user