[Pkg-mpd-commits] [python-mpd] 62/262: mpd.py: don't allow command_list_end if already iterating
Simon McVittie
smcv at debian.org
Sun May 22 18:16:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch upstream
in repository python-mpd.
commit 9c09c839d9c9e8c9a0ac8a49655ef6a48eedf1cf
Author: J. Alexander Treuman <jat at spatialrift.net>
Date: Thu Jul 15 17:27:23 2010 -0400
mpd.py: don't allow command_list_end if already iterating
---
mpd.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mpd.py b/mpd.py
index c38204e..a850bb0 100644
--- a/mpd.py
+++ b/mpd.py
@@ -418,6 +418,8 @@ class MPDClient(object):
def command_list_end(self):
if self._command_list is None:
raise CommandListError("Not in command list")
+ if self._iterating:
+ raise IteratingError("Already iterating over a command list")
self._write_command("command_list_end")
return self._fetch_command_list()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/python-mpd.git
More information about the Pkg-mpd-commits
mailing list