From 69bb2533691d7f6ef1145f3b0d7e498f94f755ae Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Fri, 21 Apr 2023 00:17:54 +0200 Subject: [PATCH] all exception are now catched --- update_doc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/update_doc b/update_doc index 9e141e1..5178493 100755 --- a/update_doc +++ b/update_doc @@ -26,6 +26,9 @@ if __name__ == "__main__": except AttributeError: print("Broken module. skipping {}".format(modfile)) continue + except Exception as e: + print("Error in documentation of module {}: {}".format(modfile, e)) + continue moddata = modfile.read_text() match = regex.search(moddata) if not match: @@ -34,4 +37,4 @@ if __name__ == "__main__": newmod = "{pre}DOCUMENTATION = {quote}{doc}{quote}{post}".format(pre=moddata[:match.start()], quote=match.group("quote"), doc=moddoc, post=moddata[match.end():]) modfile.write_text(newmod) -# code: python \ No newline at end of file +# code: python