diff --git a/src/finn/core/onnx_exec.py b/src/finn/core/onnx_exec.py
index 61c5f26192965f1b3ebf81c35a25417c43e9d59a..7c3123cd5eb29a54dc5cbfb912225ad3fdb0f219 100644
--- a/src/finn/core/onnx_exec.py
+++ b/src/finn/core/onnx_exec.py
@@ -103,7 +103,6 @@ def execute_node(node, context, graph):
                     raise Exception(
                         """Output shapes disagree after node execution:
                         found %s vs expected %s"""
-                        % (str(output_list[list_ind].shape), str(context[outp].shape),)
                         % (str(output_list[list_ind].shape), str(context[outp].shape))
                     )
                 context[outp] = output_list[list_ind]