From 95580509b426bb4ee769576a5eef474ee85ec4b5 Mon Sep 17 00:00:00 2001 From: Jim White Date: Thu, 23 Oct 2025 11:09:04 -0700 Subject: [PATCH] Fix exception in help_magic.py Minimum change to fix https://github.com/Calysto/metakernel/issues/232 ``` %magic --- Error in calling magic 'magic' on line: string indices must be integers, not 'str' ``` --- metakernel/magics/help_magic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metakernel/magics/help_magic.py b/metakernel/magics/help_magic.py index a747baf0..053c66ad 100644 --- a/metakernel/magics/help_magic.py +++ b/metakernel/magics/help_magic.py @@ -18,7 +18,7 @@ def help_strings(self): ] strings = [] if self.kernel.help_suffix: - strings += [s.format(self.kernel.help_suffix['help']) + strings += [s.format(self.kernel.help_suffix) for s in suffixes] if 'help' in self.kernel.magic_prefixes: strings += [p.format(self.kernel.magic_prefixes['help'])