From 1e5c5efa6fe9175b27b21cd7a5b833bd3af55238 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 10 May 2022 08:05:36 -1000 Subject: persist_data: Use a valid exception for missing implementation Signed-off-by: Richard Purdie (cherry picked from commit 7254eb6b3e8ef504ef2274541dcc55f1d42238c6) Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- lib/bb/persist_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py index 9e20a837a..ce84a1582 100644 --- a/lib/bb/persist_data.py +++ b/lib/bb/persist_data.py @@ -208,7 +208,7 @@ class SQLTable(collections.abc.MutableMapping): def __lt__(self, other): if not isinstance(other, Mapping): - raise NotImplemented + raise NotImplementedError() return len(self) < len(other) -- cgit 1.2.3-korg