diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-01-23 12:17:12 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-01-23 12:17:12 +0100 |
commit | aa42e87340e491d0b151e9dad368711fc275c7b9 (patch) | |
tree | 264b64f28120eb79a42a1e1d46cfd63f9af7fdc1 /youtube_dl | |
parent | 649f7966f73b215f02b9c4db5a07d8c4b7e17acb (diff) |
[utils] Catch strange Windows errors (Closes #4733)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 4be323926..463cc20ff 100644 --- 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 |