Reviewers: ,
Please review this at http://codereview.tryton.org/407001/ Affected files: M trytond/protocols/dispatcher.py Index: trytond/protocols/dispatcher.py =================================================================== --- a/trytond/protocols/dispatcher.py +++ b/trytond/protocols/dispatcher.py @@ -177,8 +177,13 @@ with Transaction().start(database_name, 0) as transaction: pool = Pool(database_name) session_obj = pool.get('ir.session') - session_obj.reset(session) - transaction.cursor.commit() + try: + session_obj.reset(session) + except DatabaseOperationalError: + # Silently fail when reseting session + transaction.cursor.rollback() + else: + transaction.cursor.commit() Cache.resets(database_name) return res -- [email protected] mailing list
