Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复引用下架三方插件报错问题 --story=120780681 #69

Merged
merged 1 commit into from
Nov 19, 2024
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: black
language_version: python3
- repo: https://github.com/pycqa/isort
rev: 5.6.4
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
Expand Down
2 changes: 1 addition & 1 deletion plugin_service/api_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def wrapper(request: Request):
plugin_client = PluginServiceApiClient(plugin_code)
except PluginServiceException as e:
logger.error(f"[inject_plugin_client] error: {e}")
return JsonResponse({"message": e, "result": False, "data": None})
return JsonResponse({"message": str(e), "result": False, "data": None})
setattr(request, "plugin_client", plugin_client)
return func(request)

Expand Down
Loading