ソースを参照

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

Philipp Hagemeister 10 年 前
コミット
aa42e87340
1 ファイル変更3 行追加0 行削除
  1. 3 0
      youtube_dl/utils.py

+ 3 - 0
youtube_dl/utils.py

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