Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 4804:bc4144417861
More fixes for form TypeError
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Mon, 08 Jul 2013 16:58:21 +0200 |
| parents | e1ffab417c28 |
| children | 24b8011cd2dc |
line wrap: on
line diff
--- a/roundup/cgi/client.py Mon Jul 08 16:55:20 2013 +0200 +++ b/roundup/cgi/client.py Mon Jul 08 16:58:21 2013 +0200 @@ -1203,11 +1203,15 @@ We explicitly catch Reject and ValueError exceptions and present their messages to the user. """ - if ':action' in self.form: - action = self.form[':action'] - elif '@action' in self.form: - action = self.form['@action'] - else: + action = None + try: + if ':action' in self.form: + action = self.form[':action'] + elif '@action' in self.form: + action = self.form['@action'] + except TypeError: + pass + if action is None: return None if isinstance(action, list):
