diff --git a/python/dune/perftool/sumfact/autotune.py b/python/dune/perftool/sumfact/autotune.py
index 3e8eef5ff59ac85bad79c456bacd6aa7bf26a53c..ffe643362f3816f2512125da06c75805bceaa748 100644
--- a/python/dune/perftool/sumfact/autotune.py
+++ b/python/dune/perftool/sumfact/autotune.py
@@ -217,5 +217,5 @@ def autotune_realization(sf):
                 ret = subprocess.call(call, stdout=devnull, stderr=subprocess.STDOUT)
                 assert ret == 0
 
-    # Extract the result form the log file
-    return float(next(iter(open(logname, "r")))) / 1000000
+            # Extract the result form the log file
+            return float(next(iter(open(logname, "r")))) / 1000000