diff --git a/python/dune/codegen/sumfact/autotune.py b/python/dune/codegen/sumfact/autotune.py
index f5a259d761ffde766e35e2e588113cf499c1e460..8537a819a2e3ed67d66bb67aa8ccb91c93ee0b34 100644
--- a/python/dune/codegen/sumfact/autotune.py
+++ b/python/dune/codegen/sumfact/autotune.py
@@ -363,7 +363,11 @@ def autotune_realization(sf):
             if get_option("autotune_google_benchmark"):
                 import json
                 with open(logname) as json_file:
-                    data = json.load(json_file)
-                    return data['benchmarks'][0]['cpu_time']
+                    try:
+                        data = json.load(json_file)
+                        return data['benchmarks'][0]['cpu_time']
+                    except Exception as e:
+                        print("Error while loading file {}".format(logname))
+                        raise e
             else:
                 return float(next(iter(open(logname, "r")))) / 1000000