From 5f668c8f6ee64f9637be0af25639ae4c6e009ec1 Mon Sep 17 00:00:00 2001 From: "Stephen C. Pope" Date: Thu, 14 Nov 2024 10:14:34 -0700 Subject: [PATCH] Client: Fix problem with unpickling older Catalog objects (#12729) GitOrigin-RevId: d8c23db0af658fa27ceddb1ee8d7753c7044dbe7 --- descarteslabs/core/catalog/catalog_base.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/descarteslabs/core/catalog/catalog_base.py b/descarteslabs/core/catalog/catalog_base.py index bc90a7d1..5f301962 100644 --- a/descarteslabs/core/catalog/catalog_base.py +++ b/descarteslabs/core/catalog/catalog_base.py @@ -947,6 +947,12 @@ def delete(self): self._client.session.delete(self._url + "/" + self.id) self._deleted = True # non-200 will raise an exception + # This unused method must remain here to support unpickling any + # pickled objects generated prior to v3.2.0. + def _instance_delete(self): + """Obsolete, do not use""" + self.delete() + @classmethod @check_derived def _send_data(