From e459e1a47287309b4c157e597642aa2c0d9bb164 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 13 Feb 2015 18:58:44 +0100 Subject: [PATCH] Fix loading of history with URLs containing spaces Fixes #508. --- qutebrowser/browser/history.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qutebrowser/browser/history.py b/qutebrowser/browser/history.py index 0fc119624..6ed9d9626 100644 --- a/qutebrowser/browser/history.py +++ b/qutebrowser/browser/history.py @@ -53,10 +53,7 @@ class HistoryEntry: @classmethod def from_str(cls, s): """Get a history based on a 'TIME URL' string.""" - splitted = s.split(' ') - if len(splitted) != 2: - raise OSError("Invalid history entry '{}'".format(s)) - return cls(*splitted) + return cls(*s.split(' ', maxsplit=1)) class WebHistory(QWebHistoryInterface):