necessary.
If, generating the playlist, you are including by chance a non-force
-curve file that Hooke cannot open, Hooke will print an error and
+curve file that Hooke cannot open, Hooke will log a warning and
continue on.
Navigating the playlist
"""
import glob
+import logging
import os.path
from ..command import Command, Argument, Failure
from ..playlist import FilePlaylist
+from ..curve import NotRecognized
from . import Builtin
def _run(self, hooke, inqueue, outqueue, params):
p = self._playlist(hooke, params)
for path in sorted(glob.glob(params['input'])):
- p.append_curve_by_path(path, params['info'], hooke=hooke)
+ try:
+ p.append_curve_by_path(path, params['info'], hooke=hooke)
+ except NotRecognized, e:
+ log = logging.getLogger('hooke')
+ log.warn(unicode(e))
+ continue
outqueue.put(p[-1])
class RemoveCommand (PlaylistCommand):