From caaa13f78d8e9a577a08d5b20847bdd597ef6a38 Mon Sep 17 00:00:00 2001 From: shtlrs Date: Fri, 31 Mar 2023 14:41:49 +0100 Subject: return value from SilencedDict --- botstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'botstrap.py') diff --git a/botstrap.py b/botstrap.py index d3462c122..ccf6993f5 100644 --- a/botstrap.py +++ b/botstrap.py @@ -49,7 +49,7 @@ class SilencedDict(dict): def __getitem__(self, item: str): try: - super().__getitem__(item) + return super().__getitem__(item) except KeyError: log.warning(f"Couldn't find key: {item} in dict: {self.name} ") log.warning( -- cgit v1.2.3