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

TypeError when quitting with sys.Exit() #190

Open
lstep opened this issue Jul 21, 2016 · 2 comments
Open

TypeError when quitting with sys.Exit() #190

lstep opened this issue Jul 21, 2016 · 2 comments

Comments

@lstep
Copy link

lstep commented Jul 21, 2016

When running this simple program:

import etcd
import sys

if __name__ == "__main__":
    client = etcd.Client(port=2379)
    sys.exit()

I get an error when exiting. Other functions (read()) work fine:

Exception ignored in: <bound method Client.__del__ of <etcd.client.Client object at 0x7ff7739bae48>>
Traceback (most recent call last):
  File "/tmp/ETCD/lib/python3.4/site-packages/python_etcd-0.4.3-py3.4.egg/etcd/client.py", line 226, in __del__
  File "/tmp/ETCD/lib/python3.4/site-packages/urllib3-1.16-py3.4.egg/urllib3/poolmanager.py", line 160, in clear
  File "/tmp/ETCD/lib/python3.4/site-packages/urllib3-1.16-py3.4.egg/urllib3/_collections.py", line 89, in clear
TypeError: 'NoneType' object is not callable

I'm using the current version of python-etcd from the repository (0.4.3) with etcd 3.0.3 and python 3.4.3.
If I don't put a sys.exit(), it quits without any exception, all working fine.

@lavagetto
Copy link
Collaborator

This looks like a problem in urllib3's poolmanager. I'll take a look later.

@cenkalti
Copy link

Duplicate of #179

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

3 participants