details: https://code.tryton.org/tryton/commit/a98f54c8b87b
branch: default
user: Cédric Krier <[email protected]>
date: Mon Oct 19 12:20:05 2026 +0200
description:
Do not list databases with empty pool
A database may be registered in the pool but not yet initialized.
But the database list is used to decide to initialize or not the pool.
Closes #15183
diffstat:
trytond/trytond/pool.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e023538f4010 -r a98f54c8b87b trytond/trytond/pool.py
--- a/trytond/trytond/pool.py Mon Oct 19 13:07:28 2026 +0200
+++ b/trytond/trytond/pool.py Mon Oct 19 12:20:05 2026 +0200
@@ -129,7 +129,7 @@
:return: database list
'''
with cls._lock:
- return list(cls._pools.keys())
+ return [n for n, p in cls._pools.items() if p]
def init(self, update=None, lang=None, activatedeps=False, indexes=None):
'''