# HG changeset patch # User Björn Ricks # Date 1413452825 -7200 # Node ID 89ffa12bd48d616e07c06ee77fc2ddd8f978c9be # Parent 00e12392f8d48c54f83ab50e81f5dfbbad837479 Allow to not passing any datadict to the conversion form diff -r 00e12392f8d4 -r 89ffa12bd48d odfcast/convert.py --- 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)