projects
/
hooke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
964355d
)
Don't fail if Playlist.unload() is called on an unloaded Curve.
author
W. Trevor King
<wking@drexel.edu>
Fri, 27 Aug 2010 21:36:35 +0000
(17:36 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Fri, 27 Aug 2010 21:36:35 +0000
(17:36 -0400)
hooke/playlist.py
patch
|
blob
|
history
diff --git
a/hooke/playlist.py
b/hooke/playlist.py
index 69442da74fa63033980b942431ca04a3a8b84ae5..80d60fb462f78ceff0cdf419a5e3a5751e78bcce 100644
(file)
--- 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):