Skip to content

Commit

Permalink
Fix to exception
Browse files Browse the repository at this point in the history
  • Loading branch information
upibhalla committed Oct 21, 2023
1 parent 9ef9b51 commit fe70cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simdiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def findObj( self, uname, noRaise = False ):
try2 = moose.wildcardFind( rootpath+'/##/' + name )
try2 = [ i for i in try2 if not '/model[0]/plots[0]' in i.path ]
if len( try1 ) + len( try2 ) > 1:
raise SimError( "findObj: ambiguous name: '{}'".format(name) )
raise NameError( "findObj: ambiguous name: '{}'".format(name) )
if len( try1 ) + len( try2 ) == 0:
if noRaise:
return moose.element('/')
Expand Down

0 comments on commit fe70cff

Please sign in to comment.