X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=mpd.py;h=be8b390482e2a18639f94298e025e2282f5400a8;hp=a5e1877e5fcfa45f156a982122980163b9bf4335;hb=94fd67b7f97142bda274187e463320834a58cc15;hpb=53a5899a67eaf6f958e40276362a9593a16a2445 diff --git a/mpd.py b/mpd.py index a5e1877..be8b390 100644 --- a/mpd.py +++ b/mpd.py @@ -225,7 +225,7 @@ class MPDClient(object): def _getitem(self): items = list(self._readitems()) if len(items) != 1: - raise ProtocolError, "Expected 1 item, got %i" % len(items) + return return items[0][1] def _getlist(self):