diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-02 17:41:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-02 17:41:59 +0400 |
commit | bd0e14d90b30f1535d6909877dde8e6db529083a (patch) | |
tree | 26ad4ef978a67889a50e477eb70bf2738dd99434 | |
parent | 3d545d1db98ce29555e4c8994d91449370f0ebce (diff) |
give better feedback when a class doesnt register correctly.
-rw-r--r-- | release/scripts/modules/bpy_types.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index 9d6d307502c..31acb3d7223 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -567,7 +567,12 @@ def _unload_module(module, free=True): def _load_module(module, force=False): for t in TypeMap.get(module, ()): - bpy_types.register(t) + try: + bpy_types.register(t) + except: + import traceback + print("bpy.utils._load_module(): Module '%s' failed to register calss '%s.%s'" % (module, t.__module__, t.__name__)) + traceback.print_exc() _bpy._load_module = _load_module _bpy._unload_module = _unload_module |