From 2b31299c755f7492978fdae5a30f23affc136bda Mon Sep 17 00:00:00 2001 From: christian-B Date: Thu, 3 Sep 2026 06:27:11 +0100 Subject: [PATCH] use (re)raise without named exception --- synfire/synfire.py | 4 ++-- synfire/synfire_collab.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/synfire/synfire.py b/synfire/synfire.py index a4c1996..81ab872 100644 --- a/synfire/synfire.py +++ b/synfire/synfire.py @@ -73,9 +73,9 @@ ) offset += n_neurons plt.show() -except Exception as ex: +except Exception: print(spikes) - raise ex + raise # pylint: disable=wrong-spelling-in-comment # Way to plot the spikes without neo converter but without the colours diff --git a/synfire/synfire_collab.py b/synfire/synfire_collab.py index 0a162c6..17c9d11 100644 --- a/synfire/synfire_collab.py +++ b/synfire/synfire_collab.py @@ -74,6 +74,6 @@ ) offset += n_neurons plt.show() -except Exception as ex: +except Exception: print(spikes) - raise ex + raise