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