Commit c1369ca
committed
Revert "more readable exception handling _connect_tcp()"
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.py1 parent 08e2da8 commit c1369ca
2 files changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
| 399 | + | |
398 | 400 | | |
399 | 401 | | |
400 | 402 | | |
401 | | - | |
402 | | - | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 132 | | |
139 | 133 | | |
140 | 134 | | |
| |||
0 commit comments