From 1ead66a4d5c38de1b10f62336876c0d68a781e15 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 10 Mar 2015 23:25:02 +0100 Subject: [PATCH] quickmarks: Ignore empty and whitespace-only lines. --- qutebrowser/browser/quickmarks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qutebrowser/browser/quickmarks.py b/qutebrowser/browser/quickmarks.py index ba516c492..a7708b634 100644 --- a/qutebrowser/browser/quickmarks.py +++ b/qutebrowser/browser/quickmarks.py @@ -55,6 +55,9 @@ class QuickmarkManager(QObject): self._lineparser = lineparser.LineParser( standarddir.config(), 'quickmarks', parent=self) for line in self._lineparser: + if not line.strip(): + # Ignore empty or whitespace-only lines. + continue try: key, url = line.rsplit(maxsplit=1) except ValueError: