|
[Rivet-svn] r2913 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Feb 2 21:34:24 GMT 2011
Author: buckley Date: Wed Feb 2 21:34:24 2011 New Revision: 2913 Log: Better failure mode for scripting Modified: trunk/bin/aida2flat Modified: trunk/bin/aida2flat ============================================================================== --- trunk/bin/aida2flat Wed Feb 2 21:01:32 2011 (r2912) +++ trunk/bin/aida2flat Wed Feb 2 21:34:24 2011 (r2913) @@ -94,12 +94,12 @@ out = sys.stdout if not os.access(aidafile, os.R_OK): logging.error("%s can not be read" % aidafile) - break + sys.exit(1) try: tree = ET.parse(aidafile) except: logging.error("%s can not be parsed as XML" % aidafile) - break + sys.exit(1) histos = [] for dps in tree.findall("dataPointSet"): useThisDps = True
More information about the Rivet-svn mailing list |