Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When shutdown with MinExpirationPickableCache getting NameError: name 'open' is not defined #21

Open
Kemaweyan opened this issue Dec 5, 2023 · 0 comments

Comments

@Kemaweyan
Copy link

When I use the MinExpirationPickableCache as

cache = dns_cache.MinExpirationPickableCache(filename="dns.pickle", min_ttl=1000)
dns_cache.override_system_resolver(cache=cache)

it works, but when script is finished it shows the following error:

Exception ignored in: <function SelfPickle.__del__ at 0x7f2c37dda710>
Traceback (most recent call last):
  File "/home/kem/virtual/dns_test/lib/python3.10/site-packages/dns_cache/pickle.py", line 28, in __del__
NameError: name 'open' is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant