diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-10 21:28:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-10 21:28:22 +0300 |
commit | 2576268fb85071f2e3ba80142ddb01e733c07e08 (patch) | |
tree | 82d19e1d86807ffdc94cd41e2fd61bfdaa0aae54 /release/scripts/modules/rigify/finger_curl.py | |
parent | 0779f2c42599dd665730902cd669741070bdb46b (diff) |
missed a header last commit, added custom exceptions to rigify so they can be caught and converted into reports and have normal errors display the stack trace as useual.
Diffstat (limited to 'release/scripts/modules/rigify/finger_curl.py')
-rw-r--r-- | release/scripts/modules/rigify/finger_curl.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/modules/rigify/finger_curl.py b/release/scripts/modules/rigify/finger_curl.py index 73d4cc5fbd8..15bdd803500 100644 --- a/release/scripts/modules/rigify/finger_curl.py +++ b/release/scripts/modules/rigify/finger_curl.py @@ -19,6 +19,7 @@ # <pep8 compliant> import bpy +from rigify import RigifyError from rigify_utils import copy_bone_simple, get_side_name, get_base_name, EMPTY_LAYER from rna_prop_ui import rna_idprop_ui_prop_get from functools import reduce @@ -73,13 +74,13 @@ def metarig_definition(obj, orig_bone_name): children = bone.children if len(children) != 1: - raise Exception("expected the chain to have 2 children from bone '%s' without a fork" % orig_bone_name) + raise RigifyError("expected the chain to have 2 children from bone '%s' without a fork" % orig_bone_name) bone = children[0] bone_definition.append(bone.name) # finger_02, finger_03 chain += 1 if len(bone_definition) != len(METARIG_NAMES): - raise Exception("internal problem, expected %d bones" % len(METARIG_NAMES)) + raise RigifyError("internal problem, expected %d bones" % len(METARIG_NAMES)) return bone_definition |