Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Print import error when plugin import fails (#6748)
Marcin Gębala02d266b6e34b
diff --git a/saleor/plugins/checks.py b/saleor/plugins/checks.pyindex 3ac265b4d0..e4cdf0fc15 100644--- a/saleor/plugins/checks.py+++ b/saleor/plugins/checks.py@@ -41,8 +41,8 @@ def check_single_plugin(plugin_path: str, errors: List[Error]):returntry:plugin_class = import_string(plugin_path)- except ImportError:- errors.append(Error("Plugin with path: %s doesn't exist" % plugin_path))+ except ImportError as e:+ errors.append(Error(f"Failed to import plugin {plugin_path}: {e}"))if not errors:check_plugin_fields(["PLUGIN_ID"], plugin_class, errors)