mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-25 19:25:50 +01:00
[utils] Catch strange Windows errors (Closes #4733)
This commit is contained in:
parent
649f7966f7
commit
aa42e87340
@ -863,6 +863,9 @@ def _windows_write_string(s, out):
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
# If the output stream doesn't have a fileno, it's virtual
|
# If the output stream doesn't have a fileno, it's virtual
|
||||||
return False
|
return False
|
||||||
|
except io.UnsupportedOperation:
|
||||||
|
# Some strange Windows pseudo files?
|
||||||
|
return False
|
||||||
if fileno not in WIN_OUTPUT_IDS:
|
if fileno not in WIN_OUTPUT_IDS:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user