Mercurial > p > roundup > code
diff roundup/cgi/actions.py @ 3673:94b905502d26
removed traceback with OTK is used multiple times [SF#1240539]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 11 Aug 2006 05:41:32 +0000 |
| parents | 53987aa153d2 |
| children | 5445ff8c442b |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Fri Aug 11 05:32:14 2006 +0000 +++ b/roundup/cgi/actions.py Fri Aug 11 05:41:32 2006 +0000 @@ -1,4 +1,4 @@ -#$Id: actions.py,v 1.61 2006-07-13 10:14:56 schlatterbeck Exp $ +#$Id: actions.py,v 1.62 2006-08-11 05:41:32 richard Exp $ import re, cgi, StringIO, urllib, Cookie, time, random, csv, codecs @@ -628,7 +628,7 @@ if self.form.has_key('otk'): # pull the rego information out of the otk database otk = self.form['otk'].value - uid = otks.get(otk, 'uid') + uid = otks.get(otk, 'uid', default=None) if uid is None: self.client.error_message.append( self._("Invalid One Time Key!\n"
