From 63d449eaff01b0e1b4f80ebc517c94cb3f4c8956 Mon Sep 17 00:00:00 2001 From: "pavel.lamonov" Date: Wed, 2 Jul 2025 14:13:08 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BB=D0=B0=D0=B4=D0=BA=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ppocr/data/simple_dataset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ppocr/data/simple_dataset.py b/ppocr/data/simple_dataset.py index a8e1c03..36df0ff 100644 --- a/ppocr/data/simple_dataset.py +++ b/ppocr/data/simple_dataset.py @@ -135,7 +135,8 @@ class SimpleDataSet(Dataset): data["ext_data"] = self.get_ext_data() data["filename"] = data["img_path"] outs = transform(data, self.ops) - except: + except Exception as exc: + print(str(exc)) self.logger.error( "When parsing line {}, error happened with msg: {}".format( data_line, traceback.format_exc()