quickmarks: Ignore empty and whitespace-only lines.

This commit is contained in:
Florian Bruhin 2015-03-10 23:25:02 +01:00
parent 2b06d4e684
commit 1ead66a4d5

View File

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