yahoo/redislite

Keep getting exception on program exit...

Closed this issue · 3 comments

I have a program in Python 3.4 that uses Redislite 1.0.241.

About a third of the time when the program exits I get the following error:

Exception ignored in: <bound method StrictRedis.__del__ of     StrictRedis<ConnectionPool<UnixDomainSocketConnection<path=/tmp/tmpjgllngma/redis.socket,db=0>>>>
Traceback (most recent call last):
  File "lib/python3.4/site-packages/redislite/client.py", line 345, in __del__
  File "lib/python3.4/site-packages/redislite/client.py", line 106, in _cleanup
AttributeError: 'NoneType' object has no attribute 'debug'

Any idea what's gone wrong?

Thanks

Not sure what is going on. A few pieces of information that would be helpful.

Which Python3 interpreter? Python/cpython or pypy3?

How did you install the module?

What is the output of the following command:
python -m redislite.debug

I submitted a fix that should fix this issue in redislite 1.0.243

Awesome! Thank you so much!