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():
|
||||
try:
|
||||
for key in FILES:
|
||||
if key not in OUTPUT_KEYS:
|
||||
for key in FILES:
|
||||
if key not in OUTPUT_KEYS:
|
||||
try:
|
||||
remove(FILES[key])
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
|
||||
def yes_no_question(question, default):
|
||||
|
Loading…
Reference in New Issue
Block a user