From ed09a05e2df6d3ca59522b1da2858fbfa18b4ad0 Mon Sep 17 00:00:00 2001 From: Suryansh Shakya Date: Thu, 18 Jan 2024 15:41:02 +0530 Subject: [PATCH] updated try catch in file.py to log the error --- picard/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/picard/file.py b/picard/file.py index 68ff01019..6bf22b784 100644 --- a/picard/file.py +++ b/picard/file.py @@ -763,8 +763,8 @@ class File(QtCore.QObject, Item): def _info(self, metadata, file): try: metadata['~filesize'] = os.path.getsize(encode_filename(file.filename)) - except BaseException: - pass + except BaseException as e: + log.error(e) if hasattr(file.info, 'length'): metadata.length = int(file.info.length * 1000) if hasattr(file.info, 'bitrate') and file.info.bitrate: