Skip to content

Commit

Permalink
Merge pull request #684 from deuteronomy-works/master
Browse files Browse the repository at this point in the history
Merged
  • Loading branch information
amoh-godwin authored Jan 3, 2025
2 parents d930e08 + 8223402 commit 3b2ad97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyffmpeg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def convert(self, input_file, output_file):
except:
self.quit()

if 'Output #0' not in stderr:
# This code could be optimized
if stderr and 'Output #0' not in stderr:
lines = stderr.splitlines()
if len(lines) > 0:
self.error = lines[-1]
Expand Down

0 comments on commit 3b2ad97

Please sign in to comment.