Ensure pre-processor errors do not block `--print`

Closes #6937
pull/6940/head
pukkandan 2 years ago
parent 7a7b1376fb
commit f005a35aa7
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -3489,8 +3489,10 @@ class YoutubeDL:
return infodict
def run_all_pps(self, key, info, *, additional_pps=None):
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

Loading…
Cancel
Save