raise right error

This commit is contained in:
Stephen M. McQuay 2012-05-29 13:09:51 -06:00
parent 88cfd0f6a6
commit 7d46bb64bd
1 changed files with 4 additions and 8 deletions

View File

@ -162,8 +162,7 @@ class PolygonMesh(object):
""" """
if self._faces_for_edge is None: if self._faces_for_edge is None:
# TODO: eventually support generating this ourselves ... # TODO: eventually support generating this ourselves ...
raise AttributeError("Not yet implemented if you don't explicitly" raise NotImplementedError
" pass this in")
return self._faces_for_edge return self._faces_for_edge
@property @property
@ -171,8 +170,7 @@ class PolygonMesh(object):
"""returns a list of edge indices for a given face index.""" """returns a list of edge indices for a given face index."""
if self._edges_for_face is None: if self._edges_for_face is None:
# TODO: eventually support generating this ourselves ... # TODO: eventually support generating this ourselves ...
raise AttributeError("Not yet implemented if you don't explicitly" raise NotImplementedError
" pass this in")
return self._edges_for_face return self._edges_for_face
@property @property
@ -180,8 +178,7 @@ class PolygonMesh(object):
"""returns a list of edge indices for a given vertex index.""" """returns a list of edge indices for a given vertex index."""
if self._edges_for_vert is None: if self._edges_for_vert is None:
# TODO: eventually support generating this ourselves ... # TODO: eventually support generating this ourselves ...
raise AttributeError("Not yet implemented if you don't explicitly" raise NotImplementedError
" pass this in")
return self._edges_for_vert return self._edges_for_vert
@property @property
@ -189,8 +186,7 @@ class PolygonMesh(object):
"""returns a list of face indices for a given vert index.""" """returns a list of face indices for a given vert index."""
if self._faces_for_vert is None: if self._faces_for_vert is None:
# TODO: eventually support generating this ourselves ... # TODO: eventually support generating this ourselves ...
raise AttributeError("Not yet implemented if you don't explicitly" raise NotImplementedError
" pass this in")
return self._faces_for_vert return self._faces_for_vert
def __unicode__(self): def __unicode__(self):