better error message when an unknown character is found
svn: r180
This commit is contained in:
parent
87b4da9858
commit
7c5c4f7441
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user