diff options
Diffstat (limited to 'scripts/dev/src2asciidoc.py')
-rwxr-xr-x | scripts/dev/src2asciidoc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/dev/src2asciidoc.py b/scripts/dev/src2asciidoc.py index 1267a278a..2ad4dd60b 100755 --- a/scripts/dev/src2asciidoc.py +++ b/scripts/dev/src2asciidoc.py @@ -499,6 +499,7 @@ def _format_block(filename, what, data): what: What to change (authors, options, etc.) data; A list of strings which is the new data. """ + # pylint: disable=broad-exception-raised what = what.upper() oshandle, tmpname = tempfile.mkstemp() try: @@ -525,9 +526,8 @@ def _format_block(filename, what, data): except: os.remove(tmpname) raise - else: - os.remove(filename) - shutil.move(tmpname, filename) + os.remove(filename) + shutil.move(tmpname, filename) def regenerate_manpage(filename): |