A feature-rich command-line audio/video downloader
[postprocessor] fix write_debug when no _downloader
pukkandan2d6921210d1c
diff --git a/youtube_dlc/postprocessor/common.py b/youtube_dlc/postprocessor/common.pyindex 7fb85413fc..b641099e6a 100644--- a/youtube_dlc/postprocessor/common.py+++ b/youtube_dlc/postprocessor/common.py@@ -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):