Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle broken pipe error in main() #29505

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

handle broken pipe error in main() #29505

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 8, 2021

Please follow the guide below

  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

Closes #29082

Handle Broken pipe error in main() and exit with the message ERROR: [Errno 32] Broken pipe.
Code is taken from Python 3 documentation: Note on SIGPIPE

Tested with Python 2.6, 2.7, 3.2 and 3.9

pukkandan added a commit to yt-dlp/yt-dlp that referenced this pull request Aug 4, 2021
Lesmiscore added a commit to ytdl-patched/ytdl-patched that referenced this pull request Aug 5, 2021
* 'master' of https://github.com/yt-dlp/yt-dlp:
  Add regex to `--match-filter`
  Add all format filtering operators also to `--match-filter`
  [twitch:clips] Extract `display_id` PR: ytdl-org/youtube-dl#29684 Fixes: ytdl-org/youtube-dl#29666
  Handle `BrokenPipeError` PR: ytdl-org/youtube-dl#29505 Fixes: ytdl-org/youtube-dl#29082
  [ffpmeg] Allow `--ffmpeg-location` to be a file with different name
  Ensure sanitization of infodict before printing to stdout
  Fix `--compat-options filename` (#629)
  [Newgrounds] Improve extractor and fix playlist (#627)
  [nbcolympics:stream] Fix extractor
  [RCTIPlus] Support events and TV (#625)
nixxo pushed a commit to nixxo/yt-dlp that referenced this pull request Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BrokenPipeError: [Errno 32] Broken pipe, in combination with head
1 participant