mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 18:53:21 +01:00
prevent crash when loading unavailable downloader (#405)
This commit is contained in:
parent
5fcebb69c2
commit
682105b8ee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user