From: Urban Wallasch Date: Fri, 25 Jun 2021 17:59:30 +0000 (+0200) Subject: * Fixed minor bug in exception handler. X-Git-Tag: v0.1.0~32 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=d0cbaa5d093fe6867b3052c67e2cbd8d988dc42a;p=jiten-pai.git * Fixed minor bug in exception handler. --- 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)))) \