commit: aa42e87340e491d0b151e9dad368711fc275c7b9
parent 649f7966f73b215f02b9c4db5a07d8c4b7e17acb
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Fri, 23 Jan 2015 12:17:12 +0100
[utils] Catch strange Windows errors (Closes #4733)
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
@@ -863,6 +863,9 @@ def _windows_write_string(s, out):
except AttributeError:
# If the output stream doesn't have a fileno, it's virtual
return False
+ except io.UnsupportedOperation:
+ # Some strange Windows pseudo files?
+ return False
if fileno not in WIN_OUTPUT_IDS:
return False