fixed cleanup method's exception handling
This commit is contained in:
parent
424a6e156a
commit
aabc57cc9f
10
coub-dl.py
10
coub-dl.py
@ -97,12 +97,12 @@ def mux_streams():
|
|||||||
|
|
||||||
|
|
||||||
def cleanup():
|
def cleanup():
|
||||||
try:
|
for key in FILES:
|
||||||
for key in FILES:
|
if key not in OUTPUT_KEYS:
|
||||||
if key not in OUTPUT_KEYS:
|
try:
|
||||||
remove(FILES[key])
|
remove(FILES[key])
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def yes_no_question(question, default):
|
def yes_no_question(question, default):
|
||||||
|
Loading…
Reference in New Issue
Block a user