From 5f4797c1800ab2dc3b8ff5b1f77a43832e41d9f2 Mon Sep 17 00:00:00 2001 From: simplePCBuilding <98422316+simplePCBuilding@users.noreply.github.com> Date: Mon, 12 Sep 2022 14:48:49 +0200 Subject: [PATCH] Fixed a bug that could cause the app to crash (I might have screwed up on the syntax as I have edited this on my iPad in the browser with no autocompletion. Will fix it if it is wrong in about 2h) --- bin/handler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/handler.py b/bin/handler.py index 2db9420..d88abff 100644 --- a/bin/handler.py +++ b/bin/handler.py @@ -92,7 +92,10 @@ class Handler: self.framerate = float(self.infos[:len(self.infos) - 2]) # Splitting video into frames - os.remove(self.tmppath) + try: + os.remove(self.tmppath) + except FileNotFoundError: + pass try: os.mkdir(self.tmppath) except FileExistsError: