From 4131fb14f5d719bde84ade51e19f32682c52b4a4 Mon Sep 17 00:00:00 2001 From: Tushar Sadhwani Date: Thu, 23 May 2024 16:15:40 +0530 Subject: [PATCH] move the print outside finally --- src/packaged/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/packaged/__init__.py b/src/packaged/__init__.py index d3f69ed..cb2c739 100644 --- a/src/packaged/__init__.py +++ b/src/packaged/__init__.py @@ -185,11 +185,12 @@ def create_package( print("Stderr:\n" + exc.stdout.decode(errors="ignore"), file=sys.stderr) raise - finally: spinner.stop() if not quiet: print(f"Package {output_path!r} built successfully!") + finally: + spinner.stop() # Cleanup the packaged python and startup script from source directory if os.path.exists(startup_script_path): os.remove(startup_script_path)