1
0
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:
Pierre Mdawar 2016-10-17 19:18:29 +03:00
parent 9bf04c92d3
commit 5cdff4dc2a

View File

@ -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