diff options
| author | bwarsaw | 1999-11-11 00:08:11 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-11-11 00:08:11 +0000 |
| commit | 3268609cddf8a488755c43e1c52f85eca7baef53 (patch) | |
| tree | a2d26954952e5143a3b72f4257799d2c48a352c5 | |
| parent | b16952ebb18ab75b8817adce85ea28ae2083229d (diff) | |
| download | mailman-3268609cddf8a488755c43e1c52f85eca7baef53.tar.gz mailman-3268609cddf8a488755c43e1c52f85eca7baef53.tar.zst mailman-3268609cddf8a488755c43e1c52f85eca7baef53.zip | |
__opendb(): add a simple, first line of defense assert against out of
sync databases.
| -rw-r--r-- | Mailman/ListAdmin.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py index 65d260e8e..9e5e5a416 100644 --- a/Mailman/ListAdmin.py +++ b/Mailman/ListAdmin.py @@ -81,6 +81,8 @@ class ListAdmin: else: raise self.__dbflags = flags + # sanity check, but this is faster than checking all the keys + assert len(self.requests.keys()) == len(self.__db.keys()) def __closedb(self): if self.__db is not None: |
