diff --git a/pyproject.toml b/pyproject.toml index 5ee1d3c..5e04acb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "dopt-basics" -version = "0.2.3" +version = "0.2.4" description = "basic cross-project tools for Python-based d-opt projects" authors = [ {name = "Florian Förster", email = "f.foerster@d-opt.com"}, @@ -69,7 +69,7 @@ directory = "reports/coverage" [tool.bumpversion] -current_version = "0.2.3" +current_version = "0.2.4" parse = """(?x) (?P0|[1-9]\\d*)\\. (?P0|[1-9]\\d*)\\. diff --git a/src/dopt_basics/cli.py b/src/dopt_basics/cli.py index 3124b2e..7ed6fc3 100644 --- a/src/dopt_basics/cli.py +++ b/src/dopt_basics/cli.py @@ -81,6 +81,9 @@ class LoadingAnimation: self, interrupt: bool = False, ) -> None: + if self.done: + return + self.done = True if self._do_animation: self._thread.join()