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:
@@ -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
|
||||||
|
try:
|
||||||
os.remove(self.tmppath)
|
os.remove(self.tmppath)
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
try:
|
try:
|
||||||
os.mkdir(self.tmppath)
|
os.mkdir(self.tmppath)
|
||||||
except FileExistsError:
|
except FileExistsError:
|
||||||
|
|||||||
Reference in New Issue
Block a user