database not ready events are hard to reproduce consistently

This commit is contained in:
Matthias committed 2022-02-13 17:39:17 +01:00
1 parent 9d12a7172c
commit ad41957127
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -102,7 +102,7 @@ class PluginsRegistry:
self._init_plugins(blocked_plugin)
self._activate_plugins()
registered_successful = True
except (OperationalError, ProgrammingError):
except (OperationalError, ProgrammingError): # pragma: no cover
# Exception if the database has not been migrated yet
logger.info('Database not accessible while loading plugins')
break