Transition from v0.1 XML playlists to v0.2 YAML playlists.
[hooke.git] / hooke / plugin / note.py
index b982075daa17cab895d8a63204b9d1d6a25417d9..b31dfd350fc69e9d6a7f937386c653d11a901d63 100644 (file)
@@ -77,7 +77,7 @@ Target object for the note.  Defaults to the current curve.
             help=self.__doc__, plugin=plugin)
 
     def _run(self, hooke, inqueue, outqueue, params):
-        outqueue.put(params['target'].info['note'])
+        outqueue.put(params['target'].info.get('note', None))
 
 
 class NoteFilterCommand (FilterCommand):
@@ -85,7 +85,7 @@ class NoteFilterCommand (FilterCommand):
     """
     def __init__(self, plugin):
         super(NoteFilterCommand, self).__init__(
-            plugin, name='note filter playlist')
+            plugin, name='note filter playlist', load_curves=False)
 
     def filter(self, curve, hooke, inqueue, outqueue, params):
         return 'note' in curve.info and curve.info['note'] != None