Mercurial > p > roundup > code
diff roundup/backends/sessions.py @ 2031:bcb21e5722b8
fix permission handling around rego
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 19 Feb 2004 02:39:05 +0000 |
| parents | fc52d57c6c3e |
| children | bd79245fc30c |
line wrap: on
line diff
--- a/roundup/backends/sessions.py Thu Feb 19 02:11:38 2004 +0000 +++ b/roundup/backends/sessions.py Thu Feb 19 02:39:05 2004 +0000 @@ -1,4 +1,4 @@ -#$Id: sessions.py,v 1.7 2004-02-11 23:55:09 richard Exp $ +#$Id: sessions.py,v 1.8 2004-02-19 02:39:05 richard Exp $ """This module defines a very basic store that's used by the CGI interface to store session and one-time-key information. @@ -59,7 +59,10 @@ def getall(self, infoid): db = self.opendb('c') try: - return marshal.loads(db[infoid]) + try: + return marshal.loads(db[infoid]) + except KeyError: + raise KeyError, 'No such One Time Key "%s"'%infoid finally: db.close()
