From 2d6921210d1cf04f041787b527af99a8488780c4 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 26 Jan 2021 15:52:04 +0530 Subject: [PATCH] [postprocessor] fix write_debug when no _downloader --- youtube_dlc/postprocessor/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dlc/postprocessor/common.py b/youtube_dlc/postprocessor/common.py index 7fb85413f..b641099e6 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):