1
0
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:
Mike Fährmann 2019-08-31 21:58:33 +02:00
parent 5fcebb69c2
commit 682105b8ee
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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