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")