diff --git a/pattern.py b/pattern.py index 0f04f92..44e5b6d 100644 --- a/pattern.py +++ b/pattern.py @@ -57,7 +57,7 @@ def _apply(target, arg, func): def apply(targets, args, func): for target in range(len(targets)): if this.values[targets[target]['channel']] != None: - if target in args: + if target <= len(args): this.values[targets[target]['channel']] = _apply( this.values[targets[target]['channel']], args[target], func) else: