diff --git a/script/templates/EnergyScan.py b/script/templates/EnergyScan.py index 232eb4d..d9f441f 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" - return + exit if MODE is not None: