From 0221354e5159417b3b63d8bfffecfc189ab94168 Mon Sep 17 00:00:00 2001 From: Vic P Date: Mon, 19 Sep 2022 15:41:15 +0700 Subject: [PATCH] Initial --- plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index ddf4b16..ccf1f6e 100644 --- a/plugin.py +++ b/plugin.py @@ -50,4 +50,6 @@ def initialize(ui): _plugins = loader.plugins except PluginImportError as e: print(e) - for e in plugins(): e.attach_ui(e, ui) + if not plugins() is None: + for e in plugins(): + e.attach_ui(e, ui)