diff --git a/gallery_dl/job.py b/gallery_dl/job.py index 6d81e662..b6b5a6f5 100644 --- a/gallery_dl/job.py +++ b/gallery_dl/job.py @@ -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