Skip to content

Commit

Permalink
Update DVConstraints.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Anibal authored Mar 29, 2021
1 parent 98395fe commit 1c7164b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygeo/DVConstraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def setSurface(self, surf, name='default', addToDVGeo=False, DVGeoName='default'
>>> DVCon.setSurface(surf)
"""
# if name in self.surfaces.keys():
# raise KeyError('Surface names must be unique. Repeated surface name: ' + str(name))
if name in self.surfaces.keys():
raise KeyError('Surface names must be unique. Repeated surface name: ' + str(name))

self.surfaces[name] = list()
if format == 'point-vector':
Expand Down

0 comments on commit 1c7164b

Please sign in to comment.