Skip to content

Commit

Permalink
Client: Fix problem with unpickling older Catalog objects (#12729)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: d8c23db0af658fa27ceddb1ee8d7753c7044dbe7
  • Loading branch information
stephencpope authored and Descartes Labs Build committed Nov 14, 2024
1 parent dc1aeb8 commit 5f668c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions descarteslabs/core/catalog/catalog_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5f668c8

Please sign in to comment.