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)
This commit is contained in:
simplePCBuilding
2022-09-12 14:48:49 +02:00
committed by GitHub
parent fa5faf86cb
commit 5f4797c180

View File

@@ -92,7 +92,10 @@ class Handler:
self.framerate = float(self.infos[:len(self.infos) - 2]) self.framerate = float(self.infos[:len(self.infos) - 2])
# Splitting video into frames # Splitting video into frames
os.remove(self.tmppath) try:
os.remove(self.tmppath)
except FileNotFoundError:
pass
try: try:
os.mkdir(self.tmppath) os.mkdir(self.tmppath)
except FileExistsError: except FileExistsError: