aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-12-03 02:52:03 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-12-03 02:52:53 +0530
commit43b2290658d37af9a2cb03f0407166eb9a172385 (patch)
tree369bd23406af37c27c39f2db09f44afa0e405502
parent99148c6a336acf24be1d247e66330be2fc0f7ffc (diff)
downloadhypervideo-pre-43b2290658d37af9a2cb03f0407166eb9a172385.tar.lz
hypervideo-pre-43b2290658d37af9a2cb03f0407166eb9a172385.tar.xz
hypervideo-pre-43b2290658d37af9a2cb03f0407166eb9a172385.zip
Fix `--throttled-rate`
-rw-r--r--yt_dlp/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index b40e275c0..7ac7a106b 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -2608,8 +2608,8 @@ class ThrottledDownload(ReExtractInfo):
""" Download speed below --throttled-rate. """
msg = 'The download speed is below throttle limit'
- def __init__(self, msg):
- super().__init__(msg, expected=False)
+ def __init__(self):
+ super().__init__(self.msg, expected=False)
class UnavailableVideoError(YoutubeDLError):