]> git.phdru.name Git - mimedecode.git/commitdiff
Cleanup: Fix flake8 E722 do not use bare except
authorOleg Broytman <phd@phdru.name>
Mon, 23 Oct 2017 21:18:08 +0000 (00:18 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 23 Oct 2017 21:18:08 +0000 (00:18 +0300)
mimedecode.py

index d32549d24f8bcb618c9fdcf9310c8717f02c4a0c..9019669f150b3ed39c84eeb4f55906e6d3b1e8be 100755 (executable)
@@ -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)