X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=mpd.py;h=5acc575e8794c661dfe36bcd18274d166f511e7b;hp=8b70f4aa955ffcfcf2bda81f85c642879238e76b;hb=8ab007756785772039ccbc4b650366e4a191bd58;hpb=492dab03155b00536deebeb2916a859de62e52f7 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