Skip to content

Commit

Permalink
fix: 修复引用下架三方插件报错问题 --story=120780681
Browse files Browse the repository at this point in the history
  • Loading branch information
guohelu authored and normal-wls committed Nov 19, 2024
1 parent f4cada0 commit 9b4daeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 9b4daeb

Please sign in to comment.