mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 20:19:12 +08:00
fix: Prevent plugin installation with non-existent plugin IDs (#14038)
This commit is contained in:
parent
98b0d4169e
commit
bfbc5eb91e
@ -386,7 +386,7 @@ class PluginMigration:
|
|||||||
batch_plugin_identifiers = [
|
batch_plugin_identifiers = [
|
||||||
plugins["plugins"][plugin_id]
|
plugins["plugins"][plugin_id]
|
||||||
for plugin_id in batch_plugin_ids
|
for plugin_id in batch_plugin_ids
|
||||||
if plugin_id not in installed_plugins_ids
|
if plugin_id not in installed_plugins_ids and plugin_id in plugins["plugins"]
|
||||||
]
|
]
|
||||||
manager.install_from_identifiers(
|
manager.install_from_identifiers(
|
||||||
tenant_id,
|
tenant_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user