This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
[http] Fix ‘err’ variable not being assigned in an except block (
#2045
)
totalwebcasting
Jaime Marquínez Ferrándiz
11 years ago
parent
e9f9a10fba
commit
7976fcac55
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
youtube_dl/downloader/http.py
+ 1
- 1
youtube_dl/downloader/http.py
View File
@ -133,7 +133,7 @@ class HttpFD(FileDownloader):
return
False
try
:
stream
.
write
(
data_block
)
except
(
IOError
,
OSError
)
:
except
(
IOError
,
OSError
)
as
err
:
self
.
to_stderr
(
u
"
\n
"
)
self
.
report_error
(
u
'
unable to write data:
%s
'
%
str
(
err
)
)
return
False
Write
Preview
Loading…
Cancel
Save