Skip to content

Commit 1facbec

Browse files
authored
Fix Pylint Error
Since this is an explicit error, I don't think there is any additional context https://docs.python.org/3/library/exceptions.html
1 parent b152dca commit 1facbec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_minimqtt/matcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __getitem__(self, key):
5555
raise KeyError(key)
5656
return node.content
5757
except KeyError:
58-
raise from KeyError(key)
58+
raise KeyError(key) from None
5959

6060
def __delitem__(self, key):
6161
"""Delete the value associated with some topic filter :key"""
@@ -67,7 +67,7 @@ def __delitem__(self, key):
6767
lst.append((parent, k, node))
6868
node.content = None
6969
except KeyError:
70-
raise from KeyError(key)
70+
raise KeyError(key) from None
7171
else: # cleanup
7272
for parent, k, node in reversed(lst):
7373
if node.children or node.content is not None:

0 commit comments

Comments
 (0)