diff --git a/script/templates/EnergyScan.py b/script/templates/EnergyScan.py index aaccfac..48c22c4 100644 --- a/script/templates/EnergyScan.py +++ b/script/templates/EnergyScan.py @@ -79,7 +79,7 @@ newest = getNewestFile() if NO_BEAM_CHECK == False: if not has_beam(): print "Maintenence mode: end of scan" - sys.exit(0) + exit() if MODE is not None: