From e5044ea58ebcfb29d09bb1e3a32c053b6ff11f7c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 24 Oct 2017 00:18:08 +0300 Subject: [PATCH] Cleanup: Fix flake8 E722 do not use bare except --- mimedecode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mimedecode.py b/mimedecode.py index d32549d..9019669 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -546,7 +546,7 @@ def open_output_file(filename): os.makedirs(full_dir) try: return open(fullpath, 'wb') - except: + except Exception: if create: os.removedirs(full_dir) -- 2.39.5