diff options
author | CoDEmanX <codemanx@gmx.de> | 2013-11-19 14:11:51 +0400 |
---|---|---|
committer | CoDEmanX <codemanx@gmx.de> | 2013-11-19 14:11:51 +0400 |
commit | 3adbc8f30b229e7c9ff465183d5ab0acbbdf921a (patch) | |
tree | 5046c16321b283fadae16f337ffcef1cb6a33ed6 /io_anim_bvh/import_bvh.py | |
parent | 804538b646b713d1e885c25497a1b9b48ea30c79 (diff) |
T35358: Fix for addons using raise without Exception object. TODO: Find better way to terminate addons and inform user. More py 2.x leftovers in startup/bl_operators/uvcalc_*!
Diffstat (limited to 'io_anim_bvh/import_bvh.py')
-rw-r--r-- | io_anim_bvh/import_bvh.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_anim_bvh/import_bvh.py b/io_anim_bvh/import_bvh.py index da4ece11..50ae4bd7 100644 --- a/io_anim_bvh/import_bvh.py +++ b/io_anim_bvh/import_bvh.py @@ -110,7 +110,7 @@ def read_bvh(context, file_path, rotate_mode='XYZ', global_scale=1.0): #print 'Importing the BVH Hierarchy for:', file_path pass else: - raise 'ERROR: This is not a BVH file' + raise Exception("This is not a BVH file") bvh_nodes = {None: None} bvh_nodes_serial = [None] @@ -274,7 +274,7 @@ def read_bvh(context, file_path, rotate_mode='XYZ', global_scale=1.0): else: # allow this, see above #if not bvh_node.children: - # raise 'error, bvh node has no end and no children. bad file' + # raise Exception("bvh node has no end and no children. bad file") # Removed temp for now rest_tail_world = Vector((0.0, 0.0, 0.0)) |