Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 4802:e1ffab417c28
Yet another instance of a TypeError fixed
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Mon, 08 Jul 2013 11:14:53 +0200 |
| parents | bff9e4145f70 |
| children | bc4144417861 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Mon Jul 08 10:51:03 2013 +0200 +++ b/roundup/cgi/client.py Mon Jul 08 11:14:53 2013 +0200 @@ -759,12 +759,14 @@ # allow Anonymous to use the "login" and "register" actions (noting # that "register" has its own "Register" permission check) - if ':action' in self.form: - action = self.form[':action'] - elif '@action' in self.form: - action = self.form['@action'] - else: - action = '' + action = '' + try: + if ':action' in self.form: + action = self.form[':action'] + elif '@action' in self.form: + action = self.form['@action'] + except TypeError: + pass if isinstance(action, list): raise SeriousError('broken form: multiple @action values submitted') elif action != '':
