ecFlow's documentation is now on readthedocs!

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »


Any errors in the creation of suite are handled by throwing an exception.

try :
 defs = ecflow.Defs() # create a empty definition
 s1 = defs.add_suite("s1") # create a suite "s1" and add to defs
 s2 = defs.add_suite("s1") # Exception thrown trying to add suite "s1" again
except RuntimeError, e : 
 print e 



  • No labels