Fix error handling in xsltproc.py

This commit is contained in:
David Bartley 2007-11-21 02:05:17 -05:00
parent ba0610323a
commit 3cb7d75613
1 changed files with 1 additions and 1 deletions

View File

@ -106,10 +106,10 @@ try:
# parse xml/xslt and apply style-sheet
style = libxslt.parseStylesheetFile(xsltFile)
if style == None: sys.exit(1)
doc = libxml2.parseFile(inFile)
res = style.applyStylesheet(doc, params)
ret = style.saveResultToFilename(outFile, res, 0)
except Exception, e:
print e
sys.exit(1)