# HG changeset patch # User Björn Ricks # Date 1413452147 -7200 # Node ID e6f2f1481de29a4a0c67cc2cca282259dacca1dc # Parent 83bca7dc9bfe8f1db29011947541a59149d13b78 Fix we must check the fformat variable diff -r 83bca7dc9bfe -r e6f2f1481de2 odfcast/convert.py --- a/odfcast/convert.py Thu Oct 16 11:35:19 2014 +0200 +++ b/odfcast/convert.py Thu Oct 16 11:35:47 2014 +0200 @@ -65,7 +65,7 @@ except: return "Template error", 500 - if format != "odt": + if fformat != "odt": try: outfile = self.convert(outfile, fformat) except: