From b41663c16b85da8fa6539f8c694260caec472804 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 27 Aug 2010 17:36:35 -0400 Subject: [PATCH] Don't fail if Playlist.unload() is called on an unloaded Curve. --- hooke/playlist.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hooke/playlist.py b/hooke/playlist.py index 69442da..80d60fb 100644 --- a/hooke/playlist.py +++ b/hooke/playlist.py @@ -203,7 +203,10 @@ class Playlist (NoteIndexList): def unload(self, curve): "Inverse of .`_setup_item`." curve.unload() - self._loaded.remove(curve) + try: + self._loaded.remove(curve) + except ValueError: + pass def playlist_path(path): -- 2.26.2