X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=mpd.py;h=be8b390482e2a18639f94298e025e2282f5400a8;hp=206067d5be39b225b795cc223ded85f0a399dcdd;hb=c9d183f5a967068be96b538a197d9a9dedac6048;hpb=6d801564e02022bbecd683ab34abf9d1957d96c6 diff --git a/mpd.py b/mpd.py index 206067d..be8b390 100644 --- a/mpd.py +++ b/mpd.py @@ -1,3 +1,19 @@ +# Python MPD client library +# Copyright (C) 2008 J. Alexander Treuman +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + import socket @@ -209,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):