From 2b95f9724ea42244dc618ab6f16f7f392070e654 Mon Sep 17 00:00:00 2001 From: deepend-tildeclub Date: Mon, 29 Jun 2026 19:13:18 -0600 Subject: [PATCH] Snapshot Python hooks during plugin unload --- plugins/python/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python/python.py b/plugins/python/python.py index df243ae7..d1eeb76c 100644 --- a/plugins/python/python.py +++ b/plugins/python/python.py @@ -173,7 +173,7 @@ class Plugin: def __del__(self): log('unloading', self.filename) - for hook in self.hooks: + for hook in list(self.hooks): if hook.is_unload is True: try: hook.callback(hook.userdata)