Skip to content

Commit

Permalink
Update the exception in Model Validator
Browse files Browse the repository at this point in the history
  • Loading branch information
drlukeparry committed Apr 19, 2021
1 parent 6510490 commit 4a0cd56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyslm/geometry/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ def validateBuild(models: List[Model], layers: List[Layer]):
warn("Warning: Model({:s}) was not used in any layer)".format(model.name))

if model.topLayerId != modelTopLayerIdx[model.mid]:
raise Exception("Top Layer Id of Model ({:d}) differs in the layers used ({:d})".format(model.topLayerId,
modelTopLayerIdx[model.mid]))
raise Exception("Top Layer Id {:d} of Model ({:d}) differs in the layers used ({:d})".format(model.topLayerId,
model.mid,
modelTopLayerIdx[model.mid]))

return True

0 comments on commit 4a0cd56

Please sign in to comment.