summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-01-23 12:17:12 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-01-23 12:17:12 +0100
commitaa42e87340e491d0b151e9dad368711fc275c7b9 (patch)
tree264b64f28120eb79a42a1e1d46cfd63f9af7fdc1
parent649f7966f73b215f02b9c4db5a07d8c4b7e17acb (diff)
downloadyoutube-dl-aa42e87340e491d0b151e9dad368711fc275c7b9.tar.gz
youtube-dl-aa42e87340e491d0b151e9dad368711fc275c7b9.tar.xz
youtube-dl-aa42e87340e491d0b151e9dad368711fc275c7b9.zip
[utils] Catch strange Windows errors (Closes #4733)
-rw-r--r--youtube_dl/utils.py3
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