X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=mpd.py;h=5acc575e8794c661dfe36bcd18274d166f511e7b;hp=8b70f4aa955ffcfcf2bda81f85c642879238e76b;hb=8ab007756785772039ccbc4b650366e4a191bd58;hpb=8c2ba17c359b5f1e6eacc560287802d6805788ed diff --git a/mpd.py b/mpd.py index 8b70f4a..5acc575 100644 --- a/mpd.py +++ b/mpd.py @@ -310,7 +310,7 @@ class MPDClient(object): self._wfile = self._sock.makefile("wb") try: self._hello() - except (socket.error, MPDError): + except: self.disconnect() raise