]> kaliko git repositories - python-musicpd.git/blobdiff - mpd.py
mpd.py: catch all exceptions raised by _hello()
[python-musicpd.git] / mpd.py
diff --git a/mpd.py b/mpd.py
index 8b70f4aa955ffcfcf2bda81f85c642879238e76b..5acc575e8794c661dfe36bcd18274d166f511e7b 100644 (file)
--- 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