summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2015-04-03 11:01:45 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2015-04-03 11:01:45 (GMT)
commite2b130e73e4b43c28e9049120f05498f50886f68 (patch)
tree508715745ee4bb065083d348d28e019eba8aba86
parenta3deae358084e5a4e1a2c0303d58aa47ae99574b (diff)
downloadtabellioOOo-e2b130e73e4b43c28e9049120f05498f50886f68.zip
tabellioOOo-e2b130e73e4b43c28e9049120f05498f50886f68.tar.gz
tabellioOOo-e2b130e73e4b43c28e9049120f05498f50886f68.tar.bz2
don't break on odt files missing a styles.xml component
-rw-r--r--odf2legi/odf2legi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/odf2legi/odf2legi.py b/odf2legi/odf2legi.py
index 68d417b..10c9c4f 100644
--- a/odf2legi/odf2legi.py
+++ b/odf2legi/odf2legi.py
@@ -787,6 +787,7 @@ def convert(input_filename, output_filename):
z = zipfile.ZipFile(input_filename)
content = None
metadata = None
+ styles = None
for zfile in z.namelist():
if zfile == 'content.xml':
content = z.read(zfile)