changeset 7888:456edf872259

fix: set _db_type to None when clearing anydbm db.
author John Rouillard <rouilj@ieee.org>
date Thu, 18 Apr 2024 22:15:26 -0400
parents 35b4049ea2ad
children a5d39e5a5cdc
files roundup/backends/sessions_dbm.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/backends/sessions_dbm.py	Thu Apr 18 20:55:51 2024 -0400
+++ b/roundup/backends/sessions_dbm.py	Thu Apr 18 22:15:26 2024 -0400
@@ -46,6 +46,8 @@
             os.remove(path+".dir")
             os.remove(path+".dat")
 
+        self._db_type = None
+
     def cache_db_type(self, path):
         ''' determine which DB wrote the class file, and cache it as an
             attribute of __class__ (to allow for subclassed DBs to be

Roundup Issue Tracker: http://roundup-tracker.org/