projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bebb38
)
Detect errors in video data writes
author
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Sat, 17 Apr 2010 16:49:56 +0000
(18:49 +0200)
committer
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:27:01 +0000
(11:27 +0100)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index d2bd0bf5f62d54ed9d394c22e9d939fb63480572..86e247994d86cc00b3be47bea957eb1edbd99053 100755
(executable)
--- a/
youtube-dl
+++ b/
youtube-dl
@@
-566,7
+566,10
@@
class FileDownloader(object):
except (OSError, IOError), err:
self.trouble('ERROR: unable to open for writing: %s' % str(err))
return False
- stream.write(data_block)
+ try:
+ stream.write(data_block)
+ except (IOError, OSError), err:
+ self.trouble('ERROR: unable to write data: %s' % str(err))
block_size = self.best_block_size(after - before, data_block_len)
# Progress message