From 4084cc7eaa0a69858b51b7781ad94222e64bdf62 Mon Sep 17 00:00:00 2001 From: Dirk Kulawiak Date: Thu, 29 Aug 2024 11:48:07 +0200 Subject: [PATCH] Fix checks --- weaviate/backup/backup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weaviate/backup/backup.py b/weaviate/backup/backup.py index b61edf4c3..b0cd256a0 100644 --- a/weaviate/backup/backup.py +++ b/weaviate/backup/backup.py @@ -372,7 +372,8 @@ async def __cancel_backup( response = await self._connection.delete( path=path, error_msg="Backup delete failed due to connection error." ) - if response is None: + typed_response = _decode_json_response_dict(response, "Backup restore status check") + if typed_response is None: raise EmptyResponseException() if response.status_code == 204: