From b052c08209cc4c9d64142aad87bfca53f239224d Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Mon, 11 Jan 2021 17:51:19 -0600
Subject: [PATCH] ImportError -> ModuleNotFoundError in expansion-toys

---
 examples/expansion-toys.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/expansion-toys.py b/examples/expansion-toys.py
index 97c0eceb..e774b17a 100644
--- a/examples/expansion-toys.py
+++ b/examples/expansion-toys.py
@@ -4,7 +4,7 @@ import numpy as np
 from sumpy.visualization import FieldPlotter
 try:
     import matplotlib.pyplot as plt
-except ImportError:
+except ModuleNotFoundError:
     plt = None
 
 
-- 
GitLab