comparison odfcast/convert.py @ 32:e6f2f1481de2

Fix we must check the fformat variable
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 16 Oct 2014 11:35:47 +0200
parents 83bca7dc9bfe
children 00e12392f8d4
comparison
equal deleted inserted replaced
31:83bca7dc9bfe 32:e6f2f1481de2
63 outfile.close() 63 outfile.close()
64 outfile = tfile 64 outfile = tfile
65 except: 65 except:
66 return "Template error", 500 66 return "Template error", 500
67 67
68 if format != "odt": 68 if fformat != "odt":
69 try: 69 try:
70 outfile = self.convert(outfile, fformat) 70 outfile = self.convert(outfile, fformat)
71 except: 71 except:
72 log.exception("Conversion error") 72 log.exception("Conversion error")
73 return "Conversion error", 500 73 return "Conversion error", 500
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)