Fix error handling in xsltproc.py
parent
ba0610323a
commit
3cb7d75613
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue