Skip to content

Commit e9eea9d

Browse files
committed
Yet another instance of a TypeError fixed
1 parent 1725010 commit e9eea9d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

roundup/cgi/client.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -759,12 +759,14 @@ def check_anonymous_access(self):
759759
# allow Anonymous to use the "login" and "register" actions (noting
760760
# that "register" has its own "Register" permission check)
761761

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 = ''
762+
action = ''
763+
try:
764+
if ':action' in self.form:
765+
action = self.form[':action']
766+
elif '@action' in self.form:
767+
action = self.form['@action']
768+
except TypeError:
769+
pass
768770
if isinstance(action, list):
769771
raise SeriousError('broken form: multiple @action values submitted')
770772
elif action != '':

0 commit comments

Comments
 (0)