My favorites | Sign in
Project Logo
       
New issue | Search
for
| Advanced search | Search tips
Issue 3: Syntax error in in line 895: mismatch in exception instance names
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Dec 2007
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by denials, Dec 09, 2007
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.
 
Comment 1 by izimobil, Dec 10, 2007
Thanks but this bug was already fixed in svn:
see: http://polib.googlecode.com/svn/trunk/polib.py

The next bugfix release is coming very soon, so stay tuned.
Status: Fixed
Sign in to add a comment

Hosted by Google Code