We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b06f31 commit 4d75105Copy full SHA for 4d75105
metabase/resource.py
@@ -4,7 +4,7 @@
4
from metabase import Metabase
5
from requests import HTTPError
6
7
-from missing import MISSING
+from metabase.missing import MISSING
8
9
10
class Resource:
@@ -82,5 +82,5 @@ def delete(self) -> None:
82
"""Delete an instance."""
83
response = self.connection().delete(self.ENDPOINT + f"/{getattr(self, self.PRIMARY_KEY)}")
84
85
- if response.status_code != 204:
+ if response.status_code not in (200, 204):
86
raise HTTPError(response.content.decode())
0 commit comments