Fix up _asciidoc_fallback_path

Note to self: Don't do coding in bed at 1 AM.
See #4576
This commit is contained in:
Florian Bruhin 2019-02-16 01:10:03 +01:00
parent 0de43e3438
commit a8910f5ef5

View File

@ -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: