From 028a7e1d08c135dff5aad28e1d9b0c63a3985176 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 24 Oct 2017 00:19:06 +0300 Subject: [PATCH] Cleanup: Fix flake8 E722 do not use bare except --- scripts/cmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cmp.py b/scripts/cmp.py index 0168bec..fdc4041 100755 --- a/scripts/cmp.py +++ b/scripts/cmp.py @@ -29,7 +29,7 @@ if show_pbar: if show_pbar: try: size = os.path.getsize(fname1) - except: + except Exception: print(fname1, ": no such file") sys.exit(1) -- 2.39.5