Fix up _asciidoc_fallback_path
Note to self: Don't do coding in bed at 1 AM. See #4576
This commit is contained in:
parent
0de43e3438
commit
a8910f5ef5
@ -340,7 +340,7 @@ def qute_gpl(_url):
|
||||
|
||||
def _asciidoc_fallback_path(html_path):
|
||||
"""Fall back to plaintext asciidoc if the HTML is unavailable."""
|
||||
asciidoc_path = html_path.replace('.html', '.asciidoc')
|
||||
path = html_path.replace('.html', '.asciidoc')
|
||||
try:
|
||||
return utils.read_file(path)
|
||||
except OSError:
|
||||
|
Loading…
Reference in New Issue
Block a user