Skip to content

Commit 03a1887

Browse files
committed
Fix 'object of type "filter" has no len()' issue
1 parent e2fdcab commit 03a1887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/shopify_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def run_task(cls, task=None, *args):
5151

5252
# Allow unambigious abbreviations of tasks
5353
if task not in cls._tasks:
54-
matches = filter(lambda item: item.startswith(task), cls._tasks)
54+
matches = list(filter(lambda item: item.startswith(task), cls._tasks))
5555
if len(matches) == 1:
5656
task = matches[0]
5757
else:

0 commit comments

Comments
 (0)