Skip to content

Commit

Permalink
Remove dependency on _gdbm
Browse files Browse the repository at this point in the history
This import is not from stdlib so we now use dbm which is.
  • Loading branch information
dosaboy committed Jun 16, 2023
1 parent bcfd6e3 commit cede539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions searchkit/utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import abc
import dbm
import fasteners
import os
import shelve
import time
import _gdbm

from contextlib import ContextDecorator
from functools import cached_property
Expand Down Expand Up @@ -157,7 +157,7 @@ def _get_db(self, key):
try:
self._dbs[idx] = shelve.open(path)
break
except _gdbm.error:
except dbm.gnu.error:
log.debug("error opening cache %s - sleeping 10s then "
"retrying (attempt %s/%s)", path, attempt,
self.max_open_retry)
Expand Down

0 comments on commit cede539

Please sign in to comment.