Browse Source

[utils] Catch strange Windows errors (Closes #4733)

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
aa42e87340
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      youtube_dl/utils.py

+ 3
- 0
youtube_dl/utils.py View File

@ -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


Loading…
Cancel
Save