From 7254eb6b3e8ef504ef2274541dcc55f1d42238c6 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Apr 21 2022 20:00:26 +0000 Subject: persist_data: Use a valid exception for missing implementation Signed-off-by: Richard Purdie --- diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py index 9e20a83..ce84a15 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)