aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-05-26 01:13:08 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-05-26 01:13:08 +0530
commitc19bc311cbc415c8683c5bc34286d8f079e60e70 (patch)
treed97665ca664a73f55411276ac764e5bbaed441ea /yt_dlp/YoutubeDL.py
parent5435dcf96ec444c92a402d0eb169d94015c0e6ba (diff)
downloadhypervideo-pre-c19bc311cbc415c8683c5bc34286d8f079e60e70.tar.lz
hypervideo-pre-c19bc311cbc415c8683c5bc34286d8f079e60e70.tar.xz
hypervideo-pre-c19bc311cbc415c8683c5bc34286d8f079e60e70.zip
[cleanup] Refactor updater
The updater now uses `.update.run_update` and not `.update.update_self`. Although I don't expect anyone to be using the updater via API, a wrapper `update_self` is provided for compatibility just in case
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 9d0efc90e..5b9f2f18e 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -734,7 +734,8 @@ class YoutubeDL(object):
else:
tb_data = traceback.format_list(traceback.extract_stack())
tb = ''.join(tb_data)
- self.to_stderr(tb)
+ if tb:
+ self.to_stderr(tb)
if not self.params.get('ignoreerrors', False):
if sys.exc_info()[0] and hasattr(sys.exc_info()[1], 'exc_info') and sys.exc_info()[1].exc_info[0]:
exc_info = sys.exc_info()[1].exc_info