Private GIT

Skip to content
Snippets Groups Projects
Commit f8b4e75b authored by Ruud's avatar Ruud
Browse files

If data is empty, assume correct type for downloaders

parent faaf3516
No related branches found
No related tags found
No related merge requests found
......@@ -106,4 +106,6 @@ class Downloader(Provider):
def isEnabled(self, manual, data = {}):
d_manual = self.conf('manual', default = False)
return super(Downloader, self).isEnabled() and ((d_manual and manual) or (d_manual is False)) and self.isCorrectType(data.get('type'))
return super(Downloader, self).isEnabled() and \
((d_manual and manual) or (d_manual is False)) and \
(not data or self.isCorrectType(data.get('type')))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment