better error message when an unknown character is found

svn: r180
This commit is contained in:
Don Allingham 2001-06-23 14:26:29 +00:00
parent 225c37d938
commit 1353f7c806

View File

@ -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()