changeset 28048:72b02b498b35

docchecker: remove naked except clause This is fixing for 'naked except clause' check-code rule. check-code has overlooked this, because a file isn't recognized as one to be checked (this problem is fixed by subsequent patch).
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 10 Feb 2016 22:44:29 +0900
parents 863075fd4cd0
children c00f67c15c5a
files doc/docchecker
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/docchecker	Wed Feb 10 22:44:29 2016 +0900
+++ b/doc/docchecker	Wed Feb 10 22:44:29 2016 +0900
@@ -48,7 +48,7 @@
     try:
       with open(f) as file:
         work(file)
-    except:
-      print("failed to process %s" % f)
+    except BaseException as e:
+      print("failed to process %s: %s" % (f, e))
 
 main()