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