Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2021-06-20 23:57:58 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2021-06-21 13:51:46 +0300
commit2851602052ccd03034bb0f16f71a07f2471da5ec (patch)
tree40cf849d5a249c48e81606f806c4b1e1c90cdbba /release
parent4968a0bdf9ec16134a545678eabb922f04ed8315 (diff)
Add a reason for why an Addon can not be loaded. This change gives a more detailed explanation of the issue and may help the Addon Developer to identify what exactly needs to be changed.
The current message 'addon not loaded' is a bit too sparse. Differential Revision: https://developer.blender.org/D11655
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/addon_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py
index 239dd1cf79b..73b978d7d2d 100644
--- a/release/scripts/modules/addon_utils.py
+++ b/release/scripts/modules/addon_utils.py
@@ -358,7 +358,8 @@ def enable(module_name, *, default_set=False, persistent=False, handle_error=Non
except Exception as ex:
# if the addon doesn't exist, don't print full traceback
if type(ex) is ImportError and ex.name == module_name:
- print("addon not found:", repr(module_name))
+ print("addon not loaded:", repr(module_name))
+ print("cause:", str(ex))
else:
handle_error(ex)