diff options
| author | bwarsaw | 2001-07-27 17:32:44 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-07-27 17:32:44 +0000 |
| commit | 46c61fbdcfe6d4c1e82b3a7c70d10c94792d8678 (patch) | |
| tree | ba70221014be1dd544a9890bc2fd9ac9c62d0250 | |
| parent | 92d85a22003e3847e4c0d6580a57fb07c8c67e0a (diff) | |
| download | mailman-46c61fbdcfe6d4c1e82b3a7c70d10c94792d8678.tar.gz mailman-46c61fbdcfe6d4c1e82b3a7c70d10c94792d8678.tar.zst mailman-46c61fbdcfe6d4c1e82b3a7c70d10c94792d8678.zip | |
| -rw-r--r-- | Mailman/ListAdmin.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py index f92491bf4..808d1d784 100644 --- a/Mailman/ListAdmin.py +++ b/Mailman/ListAdmin.py @@ -120,7 +120,9 @@ class ListAdmin: def NumRequestsPending(self): self.__opendb() # Subtrace one for the version pseudo-entry - return len(self.__db) - 1 + if self.__db.has_key('version'): + return len(self.__db) - 1 + return len(self.__db) def __getmsgids(self, rtype): self.__opendb() |
