From f6dead41fcb4919b677171333c96c95c477024bc Mon Sep 17 00:00:00 2001
From: Bye <bye@byecorps.com>
Date: Sun, 11 Sep 2022 20:26:23 +0100
Subject: [PATCH] rrrr

---
 minify.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/minify.py b/minify.py
index ff26564..df779f8 100644
--- a/minify.py
+++ b/minify.py
@@ -36,7 +36,10 @@ except:
     print("no need to delete anything")
 os.system(f"advzip {output_dir}dbh.zip --add build --shrink-insane -4")
 
-progress = os.path.getsize(f"{output_dir}dbh.zip") / 1024
+try:
+    progress = os.path.getsize(f"{output_dir}dbh.zip") / 1024
 
-# make a loading bar showing progress to 13KB
-print(f"[{'#'*(int((progress/13)*100)//10)}] {((progress/13)*100)}% ({round(progress, 3)} KB / 13 KB)")
+    # make a loading bar showing progress to 13KB
+    print(f"[{'#'*(int((progress/13)*100)//10)}] {((progress/13)*100)}% ({round(progress, 3)} KB / 13 KB)")
+except:
+    print("Done!")
-- 
GitLab