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[0])
|
||||||
buff.write(ansel[1])
|
buff.write(ansel[1])
|
||||||
except Exception,e:
|
except Exception,e:
|
||||||
from traceback import print_exc
|
print "ANSEL decoding error: %x: %s" % (c,orig)
|
||||||
print_exc()
|
|
||||||
s = s[1:]
|
s = s[1:]
|
||||||
ans = buff.getvalue()
|
ans = buff.getvalue()
|
||||||
buff.close()
|
buff.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user