From e7a394e399108f8d16df041375b710513d18cbe4 Mon Sep 17 00:00:00 2001 From: Marta Iborra Date: Tue, 17 Sep 2024 11:35:48 +0200 Subject: [PATCH] Fix raise error --- src/blosc2/schunk.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/blosc2/schunk.py b/src/blosc2/schunk.py index c7364b97..c9f7c49f 100644 --- a/src/blosc2/schunk.py +++ b/src/blosc2/schunk.py @@ -14,7 +14,6 @@ from typing import Any, Iterator, NamedTuple import numpy as np -from defusedxml import NotSupportedError from msgpack import packb, unpackb import blosc2 @@ -82,7 +81,7 @@ def __contains__(self, key: str) -> bool: return blosc2_ext.meta__contains__(self.schunk, key) def __delitem__(self, key: str) -> None: - raise NotSupportedError("Cannot remove a metalayer") + raise NotImplementedError("Cannot remove a metalayer") def __setitem__(self, key: str, value: bytes) -> None: """Update the `key` metalayer with `value`.