all exception are now catched
Dieser Commit ist enthalten in:
Ursprung
52b5a96926
Commit
69bb253369
|
@ -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
|
||||
# code: python
|
||||
|
|
Laden…
In neuem Issue referenzieren