mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
[PR #6] [CLOSED] chore: storage get non-existent key will not raise error #79
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/6
Author: @hjlarry
Created: 12/22/2024
Status: ❌ Closed
Base:
main← Head:p1📝 Commits (1)
6a05b07storage get non-existent key will not raise error📊 Changes
1 file changed (+16 additions, -13 deletions)
View changed files
📝
python/dify_plugin/invocations/storage.py(+16 -13)📄 Description
when we use
item.get(key)method of a python dict or redis, it will not raise error.So I think the interface should keep consistency.
Then we can use
instead of try...catch...
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.