docchecker: remove naked except clause
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Wed, 10 Feb 2016 22:44:29 +0900
changeset 28048 72b02b498b35
parent 28047 863075fd4cd0
child 28049 c00f67c15c5a
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).
doc/docchecker
--- 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()