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

Revert "more readable exception handling _connect_tcp()" #2

Merged
merged 1 commit into from
Mar 20, 2012
Merged

Revert "more readable exception handling _connect_tcp()" #2

merged 1 commit into from
Mar 20, 2012

Conversation

multani
Copy link
Collaborator

@multani multani commented Mar 20, 2012

This reverts commit da8cb1a.

It turned out that da8cb1 actually changed the API of python-mpd: if an error
occurred while connecting to the MPD server, MPDClient._connect_tcp() would always
return 'ConnectionError("getaddrinfo returns an empty list"), even if getaddrinfo()
actually returned something.

I have no idea how to make getaddrinfo() returns nothing, so it's hard to test at
the moment.

Conflicts:

test.py

This reverts commit da8cb1a.

It turned out that da8cb1 actually changed the API of python-mpd: if an error
occurred while connecting to the MPD server, MPDClient._connect_tcp() would always
return 'ConnectionError("getaddrinfo returns an empty list"), even if getaddrinfo()
actually returned something.

I have no idea how to make getaddrinfo() returns nothing, so it's hard to test at
the moment.

Conflicts:

	test.py
Mic92 added a commit that referenced this pull request Mar 20, 2012
Revert "more readable exception handling _connect_tcp()"
@Mic92 Mic92 merged commit f04051a into Mic92:master Mar 20, 2012
Mic92 pushed a commit that referenced this pull request Nov 21, 2018
Merge master to include commit adding close method for AsyncMockServer
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

Successfully merging this pull request may close these issues.

2 participants