From d0cbaa5d093fe6867b3052c67e2cbd8d988dc42a Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Fri, 25 Jun 2021 19:59:30 +0200 Subject: [PATCH] * Fixed minor bug in exception handler. --- jiten-pai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jiten-pai.py b/jiten-pai.py index 7247f7e..96d2bcc 100755 --- a/jiten-pai.py +++ b/jiten-pai.py @@ -1457,7 +1457,7 @@ def dict_lookup(dict_fname, pattern, mode, limit=0): term = p1[0].strip() hira = p2[0].strip() trans = ' ' + p2[1].lstrip('/ ').rstrip(' \t\r\n').replace('/', '; ') - except: + except Exception as e: eprint('malformed line:', line, ':', str(e)) continue if (mode == ScanMode.JAP and (re_pattern.search(hira) or re_pattern.search(kata2hira(term)))) \ -- 2.30.2