From 9827feeabd6da89885becbc6c97ff734a1ffa581 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 28 Jul 2019 18:07:01 +0100 Subject: [PATCH] 'name' -> 'key' (copypaste fail) --- src/EventManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventManager.py b/src/EventManager.py index 0f3ea740..00eac7b3 100644 --- a/src/EventManager.py +++ b/src/EventManager.py @@ -56,9 +56,9 @@ class EventHook(object): elif key in self._multi_kwargs: return self._multi_kwargs[key].copy() elif key in self.docstring.var_items: - return self.docstring.var_items[name] + return self.docstring.var_items[key] elif key in self.docstring.items: - return [self.docstring.items[name]] + return [self.docstring.items[key]] return [] def get_kwarg(self, key: str, default: typing.Any=None) -> typing.Any: print(self.get_kwargs(key))