From 1da3719cfdb3624a3917e95a7b882588fe101db7 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Mon, 23 Sep 2024 14:28:23 -0500
Subject: [PATCH] Fix use-before-assignment in example flagged by pylint

---
 examples/sym-exp-complexity.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/examples/sym-exp-complexity.py b/examples/sym-exp-complexity.py
index bc88cdf0..9dfbfb44 100644
--- a/examples/sym-exp-complexity.py
+++ b/examples/sym-exp-complexity.py
@@ -81,6 +81,8 @@ def plot_flops():
         orders = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
         flops = [45, 194, 474, 931, 1650, 2632, 3925, 5591, 7706, 10272]
         filename = "helmholtz-m2l-complexity-2d.pdf"
+    else:
+        raise ValueError()
 
     if USE_MATPLOTLIB:
         plt.rc("font", size=16)
-- 
GitLab