Skip to content

Commit

Permalink
Fixed bug with exception in shared.
Browse files Browse the repository at this point in the history
  • Loading branch information
rserrano committed Jan 9, 2017
1 parent 1cdc9ff commit d3ab009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geomodelr/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__( self, geolojson ):
try:
base_line = base_section['transform']['line']
except TypeError:
raise ModelException("The model needs minimum a base cross section.")
raise shared.ModelException("The model needs minimum a base cross section.")
base_point = np.array(base_line[0][:2])
direction = np.array(base_line[1][:2])-base_point
direction = direction/la.norm(direction)
Expand Down

0 comments on commit d3ab009

Please sign in to comment.