Skip to content

Commit b638186

Browse files
committed
check for errors in epanet-module ENopenH
1 parent 4501c3d commit b638186

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

epanet-module/epamodule.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ def ENsolveH():
567567
def ENopenH():
568568
"""Opens the hydraulics analysis system"""
569569
ierr= _lib.ENopenH()
570+
if ierr != 0: raise ENtoolkitError(ierr)
570571

571572

572573
def ENinitH(flag=None):

0 commit comments

Comments
 (0)