Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for getting out of an inaccessible active stack with no permissions #3198

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading