From c37033006715da8a09fb04077c9a354ae354acfc Mon Sep 17 00:00:00 2001 From: Ivan Trusov Date: Sun, 28 Aug 2022 16:15:54 +0200 Subject: [PATCH] :bug: urgent bugfix for context provisioning (#434) --- CHANGELOG.md | 5 +++++ dbx/__init__.py | 2 +- dbx/api/context.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfa126ff..ea18ab59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 > And empty the **[Unreleased]** section above. ---- +## [0.7.2] - 2022-08-28 + +## Fixed +- 🐛 bug with context provisioning for `dbx execute` + ## [0.7.1] - 2022-08-28 ## Added diff --git a/dbx/__init__.py b/dbx/__init__.py index a5f830a2..bc8c296f 100644 --- a/dbx/__init__.py +++ b/dbx/__init__.py @@ -1 +1 @@ -__version__ = "0.7.1" +__version__ = "0.7.2" diff --git a/dbx/api/context.py b/dbx/api/context.py index ed989b11..16db0b43 100644 --- a/dbx/api/context.py +++ b/dbx/api/context.py @@ -95,7 +95,7 @@ def __get_context_id(self, language: str) -> str: dbx_echo("Preparing execution context") ctx = LocalContextManager.get_context() - if self.__is_context_available(ctx.context_id): + if ctx and self.__is_context_available(ctx.context_id): dbx_echo("Existing context is active, using it") return ctx.context_id else: