[XML-SIG] [ pyxml-Bugs-705416 ] stylesheetReader.py uses wrong exception type

SourceForge.net noreply@sourceforge.net
Mon, 17 Mar 2003 21:48:27 -0800


Bugs item #705416, was opened at 2003-03-18 00:48
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=705416&group_id=6473

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Passin (tpassin)
Assigned to: Nobody/Anonymous (nobody)
Summary: stylesheetReader.py uses wrong exception type

Initial Comment:
Lines 66-67 of xslt/stylesheetReader.py read

    XML_PARSE_ERROR = Ft.Lib.Error.XML_PARSE_ERROR
except ImportError:

However, for current versions of Ft.Lib, which do not
have Error, the exception that gets thrown is a
different type (AttributeError).

Recommend changing to a more general exception type,
possibly even Exception.

I found this error trying to make the teud package work.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=705416&group_id=6473