[Libreoffice-commits] .: xls-dump.py
Kohei Yoshida
kohei at kemper.freedesktop.org
Tue Apr 12 11:32:41 PDT 2011
xls-dump.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 33a7856b5c53bf8494d74cbdc0247b1c03bede2f
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Tue Apr 12 14:30:57 2011 -0400
Catch and process errors during CompObj parsing.
diff --git a/xls-dump.py b/xls-dump.py
index e2c6bbe..0bb9ef3 100755
--- a/xls-dump.py
+++ b/xls-dump.py
@@ -161,8 +161,11 @@ class XLDumper(object):
strm.read()
def __readCompObjStream (self, dirstrm):
- strm = olestream.CompObjStream(dirstrm.bytes)
- strm.read()
+ try:
+ strm = olestream.CompObjStream(dirstrm.bytes)
+ strm.read()
+ except olestream.CompObjStreamError:
+ globals.error("failed to parse CompObj stream.\n")
def __readSubStreamXML (self, strm):
try:
More information about the Libreoffice-commits
mailing list