From: Boyuan Yang Date: Mon, 11 Nov 2024 18:45:49 -0500 Subject: build.py: Do not fail when cleaned file do not exist Bug-Debian: https://bugs.debian.org/1087304 --- build.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 8416b30..a600a7c 100644 --- a/build.py +++ b/build.py @@ -33,9 +33,18 @@ GASP_set(modifiedFont) modifiedFont.save("fonts/ttf/ReggaeOne-Regular.ttf") -shutil.rmtree("instance_ufo") -shutil.rmtree("master_ufo") -shutil.rmtree("master_ttf") +try: + shutil.rmtree("instance_ufo") +except Exception as e: + print(e) +try: + shutil.rmtree("master_ufo") +except Exception as e: + print(e) +try: + shutil.rmtree("master_ttf") +except Exception as e: + print(e) try: if sys.argv[1] == "--autohinting":