Skip to content

Commit

Permalink
Ensure pre-processor errors do not block --print
Browse files Browse the repository at this point in the history
Closes #6937
  • Loading branch information
pukkandan committed Apr 28, 2023
1 parent 7a7b137 commit f005a35
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions yt_dlp/YoutubeDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -3489,10 +3489,12 @@ def run_pp(self, pp, infodict):
return infodict

def run_all_pps(self, key, info, *, additional_pps=None):
for pp in (additional_pps or []) + self._pps[key]:
info = self.run_pp(pp, info)
if key != 'video':
self._forceprint(key, info)
try:
for pp in (additional_pps or []) + self._pps[key]:
info = self.run_pp(pp, info)
finally:
if key != 'video':
self._forceprint(key, info)
return info

def pre_process(self, ie_info, key='pre_process', files_to_move=None):
Expand Down

0 comments on commit f005a35

Please sign in to comment.