From a7f4e14a19562c0edc9fcbe3351c8ea88ab35bbe Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Mon, 9 Nov 2020 01:46:41 -0500 Subject: [PATCH] fix issue with args parsing --- pattern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: