mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 08:17:20 +08:00
[utils] added explicit string formatting indexes to support Python 2.6
This commit is contained in:
parent
9bf04c92d3
commit
5cdff4dc2a
@ -780,7 +780,7 @@ class ContentTooShortError(YoutubeDLError):
|
||||
|
||||
def __init__(self, downloaded, expected):
|
||||
super(ContentTooShortError, self).__init__(
|
||||
'Downloaded {} bytes, expected {} bytes'.format(downloaded, expected)
|
||||
'Downloaded {0} bytes, expected {1} bytes'.format(downloaded, expected)
|
||||
)
|
||||
# Both in bytes
|
||||
self.downloaded = downloaded
|
||||
|
Loading…
x
Reference in New Issue
Block a user