Apply 62_new_list_bad_pending_requests.patch
authorMichael Spang <mspang@uwaterloo.ca>
Thu, 13 Sep 2007 00:32:57 +0000 (20:32 -0400)
committerMichael Spang <mspang@uwaterloo.ca>
Thu, 13 Sep 2007 00:32:57 +0000 (20:32 -0400)
Mailman/ListAdmin.py

index ba486e0..bf9068a 100644 (file)
@@ -130,8 +130,11 @@ class ListAdmin:
 
     def NumRequestsPending(self):
         self.__opendb()
-        # Subtract one for the version pseudo-entry
-        return len(self.__db) - 1
+        if self.__db.has_key('version'):
+            # Subtract one for the version pseudo-entry
+            return len(self.__db) - 1
+        else:
+            return len(self.__db)
 
     def __getmsgids(self, rtype):
         self.__opendb()