From: Oleg Broytman Date: Mon, 23 Oct 2017 21:18:08 +0000 (+0300) Subject: Cleanup: Fix flake8 E722 do not use bare except X-Git-Tag: 2.8.0~6 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=e5044ea58ebcfb29d09bb1e3a32c053b6ff11f7c;p=mimedecode.git Cleanup: Fix flake8 E722 do not use bare except --- 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)