Skip to content

Commit

Permalink
fix: set _db_type to None when clearing anydbm db.
Browse files Browse the repository at this point in the history
  • Loading branch information
rouilj committed Apr 19, 2024
1 parent 7ab4a8f commit f0408f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roundup/backends/sessions_dbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def clear(self):
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
Expand Down

0 comments on commit f0408f0

Please sign in to comment.