Skip to content
This repository was archived by the owner on Oct 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
- Added support for Fulfillment.update_tracking ([#432](https://github.com/Shopify/shopify_python_api/pull/432))
- Add FulfillmentEvent resource ([#454](https://github.com/Shopify/shopify_python_api/pull/454))
- Fix for being unable to get the len() of a filter ([#456](https://github.com/Shopify/shopify_python_api/pull/456))

== Version 8.2.0
- [Feature] Add support for Dynamic API Versioning. When the library is initialized, it will now make a request to
Expand Down
5 changes: 3 additions & 2 deletions scripts/shopify_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ def run_task(cls, task=None, *args):
# Allow unambigious abbreviations of tasks
if task not in cls._tasks:
matches = filter(lambda item: item.startswith(task), cls._tasks)
if len(matches) == 1:
task = matches[0]
list_of_matches = list(matches)
if len(list_of_matches) == 1:
task = list_of_matches[0]
else:
sys.stderr.write('Could not find task "%s".\n' % (task))

Expand Down