diff roundup/cgi/client.py @ 3687:ff9f4ca42454

Postgres backend allows transaction collisions to be ignored when... ...committing clenup in the sessions database
author Richard Jones <richard@users.sourceforge.net>
date Tue, 29 Aug 2006 04:20:50 +0000
parents ed76f7ee34c4
children a2d22d0de0bc
line wrap: on
line diff
--- a/roundup/cgi/client.py	Sun Aug 27 11:34:12 2006 +0000
+++ b/roundup/cgi/client.py	Tue Aug 29 04:20:50 2006 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.226 2006-06-06 01:44:44 richard Exp $
+# $Id: client.py,v 1.227 2006-08-29 04:20:50 richard Exp $
 
 """WWW request handler (also used in the stand-alone server).
 """
@@ -334,7 +334,7 @@
         sessions.clean(now)
         self.db.getOTKManager().clean(now)
         sessions.set('last_clean', last_use=time.time())
-        self.db.commit()
+        self.db.commit(fail_ok=True)
 
     def determine_charset(self):
         """Look for client charset in the form parameters or browser cookie.

Roundup Issue Tracker: http://roundup-tracker.org/