]> kaliko git repositories - python-musicpd.git/commitdiff
mpd.py: making _getitem return None if no item is returned
authorJ. Alexander Treuman <jat@spatialrift.net>
Sat, 1 Mar 2008 20:03:47 +0000 (15:03 -0500)
committerJ. Alexander Treuman <jat@spatialrift.net>
Sat, 1 Mar 2008 20:03:47 +0000 (15:03 -0500)
update and addid should normally always return a single item, so previously
an exception was raised if we got nothing.  However, when used in a
command_list, only the *last* call to update will return an item.  So
return None instead of raising an exception if we get nothing.


No differences found