database: validate that namespace exists in ns_contains
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
0bd12c8dec
commit
96b00549cf
|
@ -562,6 +562,7 @@ class MoonrakerDatabase:
|
|||
namespace: str,
|
||||
key: Union[List[str], str]
|
||||
) -> bool:
|
||||
self._get_db(namespace)
|
||||
try:
|
||||
key_list = self._process_key(key)
|
||||
record = self._get_record(namespace, key_list[0])
|
||||
|
|
Loading…
Reference in New Issue