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

index 0168bec40e2061988c0865f72b56586ff548f567..fdc40417bf02649aa1f4034e2479547b39b9607b 100755 (executable)
@@ -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)