1. Michele Lacchia
  2. pypi

Commits

Richard Jones  committed d83a88c

make these parameters slightly more optional for non-HTML-form submissions

  • Participants
  • Parent commits c49f0fc
  • Branches default

Comments (0)

Files changed (1)

File webui.py

View file
         if not content or not filetype:
             raise FormError, 'Both content and filetype are required'
 
-        md5_digest = parameters['md5_digest']
-
-        comment = parameters['comment']
+        md5_digest = parameters.get('md5_digest', '')
+        comment = parameters.get('comment', '')
 
         # python version?
         if parameters.get('pyversion', ''):