We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1725010 commit e9eea9dCopy full SHA for e9eea9d
roundup/cgi/client.py
@@ -759,12 +759,14 @@ def check_anonymous_access(self):
759
# allow Anonymous to use the "login" and "register" actions (noting
760
# that "register" has its own "Register" permission check)
761
762
- if ':action' in self.form:
763
- action = self.form[':action']
764
- elif '@action' in self.form:
765
- action = self.form['@action']
766
- else:
767
- action = ''
+ action = ''
+ try:
+ if ':action' in self.form:
+ action = self.form[':action']
+ elif '@action' in self.form:
+ action = self.form['@action']
768
+ except TypeError:
769
+ pass
770
if isinstance(action, list):
771
raise SeriousError('broken form: multiple @action values submitted')
772
elif action != '':
0 commit comments