diff --git a/CHANGES.md b/CHANGES.md index 058f1ed86..eb7f0647f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,7 +6,13 @@ v0.14.0 (unreleased) * No changes yet. -v0.13.2 (unreleased) +v0.13.3 (unreleased) +-------------------- + +* Fixed a bug related to callback functions when restoring sessions. + [#1695] + +v0.13.2 (2018-05-01) -------------------- * Fixed a bug that caused the EditSubsetMode toolbar to not change diff --git a/glue/core/state.py b/glue/core/state.py index b81257984..a79f1789a 100644 --- a/glue/core/state.py +++ b/glue/core/state.py @@ -536,7 +536,13 @@ def _try_callbacks(self): except Exception: pass else: - self._callbacks.remove(callback) + # In some cases (unclear how to trigger this) callback is no + # longer in the list by the time we try and remove it, hence + # why we need this try...except. + try: + self._callbacks.remove(callback) + except ValueError: + pass saver = GlueSerializer.serializes