From e2cbde75e48792e26caaed8fdd08f211e579b3a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 19 Sep 2010 17:03:04 +0200 Subject: [PATCH] Add missing test on manifest for issue1682 (transplanted from c17b22e35231da58101ed631ce81563a5731ec67) --- trytond/report/report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trytond/report/report.py b/trytond/report/report.py index 773d76a5d2..7614fbf353 100644 --- a/trytond/report/report.py +++ b/trytond/report/report.py @@ -191,7 +191,8 @@ class Report(object): if file.startswith('Pictures'): picture = style2_z.read(file) pictures.append((file, picture)) - manifest.add_file_entry(file) + if manifest: + manifest.add_file_entry(file) style2_z.close() style2_io.close() dom_style2 = xml.dom.minidom.parseString(style2_xml)