From 1353f7c80642a76c9c77b145ff7b8e9a98ca8da9 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 23 Jun 2001 14:26:29 +0000 Subject: [PATCH] better error message when an unknown character is found svn: r180 --- gramps/src/latin_ansel.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gramps/src/latin_ansel.py b/gramps/src/latin_ansel.py index 29d943f3b..4dec1f3c4 100644 --- a/gramps/src/latin_ansel.py +++ b/gramps/src/latin_ansel.py @@ -117,8 +117,7 @@ def latin_to_ansel(s): buff.write(ansel[0]) buff.write(ansel[1]) except Exception,e: - from traceback import print_exc - print_exc() + print "ANSEL decoding error: %x: %s" % (c,orig) s = s[1:] ans = buff.getvalue() buff.close()