From 5d70e88d49c2a274d165405d642197d3d212d438 Mon Sep 17 00:00:00 2001 From: Amoh Gyebi Ampofo Date: Sat, 4 Jan 2025 11:57:46 +0000 Subject: [PATCH] Update __init__.py --- pyffmpeg/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyffmpeg/__init__.py b/pyffmpeg/__init__.py index b8b025a..9330413 100644 --- a/pyffmpeg/__init__.py +++ b/pyffmpeg/__init__.py @@ -151,8 +151,9 @@ def convert(self, input_file, output_file): self.logger.error('error should') print(stderr) - except: - stderr = "" + except Exception as e: + self.logger.error(e) + stderr = e self.quit() if 'Output #0' not in stderr: