# HG changeset patch # User FUJIWARA Katsunori # Date 1455111869 -32400 # Node ID 72b02b498b35c6c408064e488d4cb9385e9adda5 # Parent 863075fd4cd072261e332eff281a3ca8ab54998e 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). diff -r 863075fd4cd0 -r 72b02b498b35 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()