From: J. Alexander Treuman Date: Sun, 23 Mar 2008 19:50:48 +0000 (-0400) Subject: mpd.py: raise ConnectionError when trying to use an unconnected socket X-Git-Tag: v0.2.0~12 X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=commitdiff_plain;h=11ad737dbfa521db07486a6cb789d3539a5ec4c0;hp=11ad737dbfa521db07486a6cb789d3539a5ec4c0 mpd.py: raise ConnectionError when trying to use an unconnected socket ConnectionError will now be raised when trying to read from/write to a socket before calling connect() or after calling disconnect(). In the past it would try to complete the operation on the unconnected socket, resulting in a socket.error exception. ---