From a8910f5ef536b3f85865eba0ec69cf4a29db6344 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 16 Feb 2019 01:10:03 +0100 Subject: [PATCH] Fix up _asciidoc_fallback_path Note to self: Don't do coding in bed at 1 AM. See #4576 --- qutebrowser/browser/qutescheme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/browser/qutescheme.py b/qutebrowser/browser/qutescheme.py index d91022cca..6545dc4c0 100644 --- a/qutebrowser/browser/qutescheme.py +++ b/qutebrowser/browser/qutescheme.py @@ -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: