Make xls-dump.py errors less noisy, hopefully avoiding system reports on Fedora
This commit is contained in:
parent
bfed6cb41a
commit
cf33d7531c
@ -77,6 +77,7 @@ class XLDumper(object):
|
||||
node.prettyPrint(sys.stdout, docroot, utf8 = self.params.utf8)
|
||||
|
||||
def dumpCanonicalXML (self):
|
||||
try:
|
||||
self.__parseFile()
|
||||
docroot = node.Root()
|
||||
root = docroot.appendElement('xls-dump')
|
||||
@ -95,6 +96,10 @@ class XLDumper(object):
|
||||
|
||||
node.prettyPrint(sys.stdout, docroot, utf8 = self.params.utf8)
|
||||
|
||||
except Exception as err:
|
||||
print >> sys.stderr, "xls-dump.py: error: %s" % err
|
||||
sys.exit(1)
|
||||
|
||||
def dump (self):
|
||||
self.__parseFile()
|
||||
self.strm.printStreamInfo()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user