From 9451ab18319d9483e87a718fb14266b29bae684a Mon Sep 17 00:00:00 2001 From: hedger Date: Mon, 26 Jun 2023 21:15:49 +0400 Subject: [PATCH] Hotfix for a hotfix for target selection (#21) --- VERSION.txt | 2 +- ufbt/bootstrap.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index 060d4b5..78a37ec 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.2.4.1 \ No newline at end of file +0.2.4.2 \ No newline at end of file diff --git a/ufbt/bootstrap.py b/ufbt/bootstrap.py index 4188ef1..8a6ba3e 100644 --- a/ufbt/bootstrap.py +++ b/ufbt/bootstrap.py @@ -607,7 +607,7 @@ def _func(self, args) -> int: if current_task.mode: task_to_deploy = current_task # No previous state, use default hw target - if not task_to_deploy.hw_target: + if task_to_deploy and not task_to_deploy.hw_target: task_to_deploy.hw_target = SdkDeployTask.DEFAULT_HW_TARGET else: log.warn("No previous SDK state was found, fetching latest release")