From aabc57cc9f8fb008e5c38543014c8142129153ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 5 Feb 2017 00:15:41 +0100 Subject: [PATCH] fixed cleanup method's exception handling --- coub-dl.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/coub-dl.py b/coub-dl.py index 26c18f7..a1ac0e3 100644 --- a/coub-dl.py +++ b/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):