Replying to anonymous:
On login and logout I get the following error (for each environment):
Exception exceptions.AssertionError: ...
It is related with the single sign on feature. It can be easily fixed by explicitly closing the database connection with db.close
after the commit in the following lines:
I strongly disagree, and this is backed by developer discussion. A forced close may yield other side-effects, and current Trac db API strongly advocates for not using such forceful actions to a transaction in general.