Skip to content
Snippets Groups Projects
Commit 3adbc8f3 authored by CoDEmanX's avatar CoDEmanX
Browse files

T35358: Fix for addons using raise without Exception object. TODO: Find better...

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_*!
parent 804538b6
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ def read_bvh(context, file_path, rotate_mode='XYZ', global_scale=1.0): ...@@ -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 #print 'Importing the BVH Hierarchy for:', file_path
pass pass
else: else:
raise 'ERROR: This is not a BVH file' raise Exception("This is not a BVH file")
bvh_nodes = {None: None} bvh_nodes = {None: None}
bvh_nodes_serial = [None] bvh_nodes_serial = [None]
...@@ -274,7 +274,7 @@ def read_bvh(context, file_path, rotate_mode='XYZ', global_scale=1.0): ...@@ -274,7 +274,7 @@ def read_bvh(context, file_path, rotate_mode='XYZ', global_scale=1.0):
else: else:
# allow this, see above # allow this, see above
#if not bvh_node.children: #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 # Removed temp for now
rest_tail_world = Vector((0.0, 0.0, 0.0)) rest_tail_world = Vector((0.0, 0.0, 0.0))
......
...@@ -592,7 +592,7 @@ def create_mesh(new_objects, ...@@ -592,7 +592,7 @@ def create_mesh(new_objects,
for i, face in enumerate(faces): for i, face in enumerate(faces):
if len(face[0]) < 2: if len(face[0]) < 2:
pass # raise "bad face" pass # raise Exception("bad face")
elif len(face[0]) == 2: elif len(face[0]) == 2:
if use_edges: if use_edges:
edges.append(face[0]) edges.append(face[0])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment