Mercurial > odfcast
changeset 34:89ffa12bd48d
Allow to not passing any datadict to the conversion form
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Thu, 16 Oct 2014 11:47:05 +0200 |
parents | 00e12392f8d4 |
children | aee742cdd604 |
files | odfcast/convert.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/odfcast/convert.py Thu Oct 16 11:45:51 2014 +0200 +++ b/odfcast/convert.py Thu Oct 16 11:47:05 2014 +0200 @@ -96,7 +96,7 @@ return MIMETYPES.get(fformat, DEFAULT_MIMETYPE) def get_datadict(self): - vars = request.form['datadict'] + vars = request.form.get('datadict') if not vars: return None return json.loads(vars)