|
|
What steps will reproduce the problem?
1. Parse a PO file with a syntax error in the code comment section (e.g.
#: field.auoi.opt_in_ws.label 39:class.aws.label:26
What is the expected output? What do you see instead?
Expected output is a syntax parsing exception with a reasonable message.
Instead, I see:
File "/usr/lib/python2.4/site-packages/polib.py", line 895, in process
raise IOError('Syntax error in po file (line %s): %s' % \
NameError: global name 'exc' is not defined
What version of the product are you using? On what operating system?
0.30 on Gentoo Linux
Please provide any additional information below.
This is a simple fix; the name of the Exception in 894 is 'exc', but we
try printing an Exception named 'e' in line 895. Change one of the names
to match the other and all is well.
|