From beb87045f87fdefb6fc8bfaf0783dc0848be4c86 Mon Sep 17 00:00:00 2001 From: vizier-team Date: Tue, 6 Dec 2022 07:13:49 -0800 Subject: [PATCH] Remove unused CachePolicyIsStaleError. PiperOrigin-RevId: 493296928 --- vizier/_src/pythia/pythia_errors.py | 10 ---------- vizier/pythia.py | 1 - 2 files changed, 11 deletions(-) diff --git a/vizier/_src/pythia/pythia_errors.py b/vizier/_src/pythia/pythia_errors.py index c2ea78aed..1d142b406 100644 --- a/vizier/_src/pythia/pythia_errors.py +++ b/vizier/_src/pythia/pythia_errors.py @@ -32,16 +32,6 @@ class TemporaryPythiaError(PythiaError): """ -class CachedPolicyIsStaleError(PythiaError): - """Raise this if the cached Policy instance is too stale. - - Raised by Policy code. Because Policy instances are cached, - they could potentially become stale. If so, code should raise this, - and the computation will be restarted with a freshly created Policy - instance. - """ - - class InactivateStudyError(PythiaError): """Pythia cannot handle this Study as configured; inactivate it. diff --git a/vizier/pythia.py b/vizier/pythia.py index fc1d15349..866be13b8 100644 --- a/vizier/pythia.py +++ b/vizier/pythia.py @@ -24,7 +24,6 @@ from vizier._src.pythia.policy import SuggestDecision from vizier._src.pythia.policy import SuggestRequest from vizier._src.pythia.policy_supporter import PolicySupporter -from vizier._src.pythia.pythia_errors import CachedPolicyIsStaleError from vizier._src.pythia.pythia_errors import CancelComputeError from vizier._src.pythia.pythia_errors import InactivateStudyError from vizier._src.pythia.pythia_errors import LoadTooLargeError