[postprocessor] fix write_debug when no _downloader

pull/31/head
pukkandan 4 years ago
parent f137c99e9f
commit 2d6921210d

@ -56,7 +56,7 @@ class PostProcessor(object):
def write_debug(self, text, prefix=True, *args, **kwargs):
tag = '[debug] ' if prefix else ''
if self.get_param('verbose', False):
if self.get_param('verbose', False) and self._downloader:
return self._downloader.to_screen('%s%s' % (tag, text), *args, **kwargs)
def get_param(self, name, default=None, *args, **kwargs):

Loading…
Cancel
Save