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:
authorCampbell Barton <ideasman42@gmail.com>2012-08-22 14:03:37 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-22 14:03:37 +0400
commit28b9576f4bbc2b9c5ae181350bf3a9e464eedf38 (patch)
tree9958ef0cf4e45937403a4c04a6405d34553b3973 /release/scripts/modules/addon_utils.py
parent2b9fd376e1d0aa9491d8b842b7b45cc5beac5fbe (diff)
error message when an addon was missing register/unregister functions whasnt very good (didnt point to file with the error)
Diffstat (limited to 'release/scripts/modules/addon_utils.py')
-rw-r--r--release/scripts/modules/addon_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py
index 02d9cd2d1c6..433d9024e0a 100644
--- a/release/scripts/modules/addon_utils.py
+++ b/release/scripts/modules/addon_utils.py
@@ -275,6 +275,7 @@ def enable(module_name, default_set=True, persistent=False):
try:
mod.register()
except:
+ print("Exception in module register(): %r" % getattr(mod, "__file__", module_name))
handle_error()
del sys.modules[module_name]
return None
@@ -316,6 +317,7 @@ def disable(module_name, default_set=True):
try:
mod.unregister()
except:
+ print("Exception in module unregister(): %r" % getattr(mod, "__file__", module_name))
import traceback
traceback.print_exc()
else: