Skip to content

Commit

Permalink
Fix erroneous "content too short" error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rg3 committed Dec 12, 2010
1 parent ef4f454 commit b905e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube-dl
Expand Up @@ -648,7 +648,7 @@ class FileDownloader(object):

stream.close()
self.report_finish()
if data_len is not None and str(byte_counter) != data_len:
if data_len is not None and byte_counter != data_len:
raise ContentTooShortError(byte_counter, long(data_len))
self.try_rename(tmpfilename, filename)
return True
Expand Down

0 comments on commit b905e5f

Please sign in to comment.