[09/11] persist_data: Use a valid exception for missing implementation

Message ID 20220420132205.2530591-9-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit 7254eb6b3e8ef504ef2274541dcc55f1d42238c6
Headers show
Series [01/11] server/process: Drop unused import | expand

Commit Message

Richard Purdie April 20, 2022, 1:22 p.m. UTC
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/persist_data.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py
index 9e20a837a4..ce84a15825 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)