Skip to content

Commit

Permalink
bugfix (#3198)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdurak authored Nov 20, 2024
1 parent b35772d commit f12b02f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zenml/zen_stores/base_zen_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
SecretsStoreType,
StoreType,
)
from zenml.exceptions import IllegalOperationError
from zenml.logger import get_logger
from zenml.models import (
ServerDatabaseType,
Expand Down Expand Up @@ -335,7 +336,7 @@ def validate_active_config(
# Ensure that the active stack is still valid
try:
active_stack = self.get_stack(stack_id=active_stack_id)
except KeyError:
except (KeyError, IllegalOperationError):
logger.warning(
"The current %s active stack is no longer available. "
"Resetting the active stack to default.",
Expand Down

0 comments on commit f12b02f

Please sign in to comment.