diff --git a/share/analysis-scripts/make_template.py b/share/analysis-scripts/make_template.py
index ca241cc8f0ebf660365c6369a52385506d19bd24..94a6a8fe3ca393515bdaf624ea4ee6f4a10a9905 100755
--- a/share/analysis-scripts/make_template.py
+++ b/share/analysis-scripts/make_template.py
@@ -73,7 +73,7 @@ def get_known_machdeps():
     match = re.match("\[kernel\] supported machines are (.*) \(default is (.*)\).", output, re.DOTALL)
     if not match:
         print("error getting known machdeps: " + output)
-        sys.exit()
+        sys.exit(1)
     machdeps = match.group(1).split()
     default_machdep = match.group(2)
     return (default_machdep, machdeps)