From 3e8136e3534feaf503891e8ef17c0d2e473bef7d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 27 Aug 2015 06:25:42 +0200 Subject: [PATCH] Revert changes to cmdhistory.py. --- qutebrowser/misc/cmdhistory.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qutebrowser/misc/cmdhistory.py b/qutebrowser/misc/cmdhistory.py index 51a001aa1..2c8ada291 100644 --- a/qutebrowser/misc/cmdhistory.py +++ b/qutebrowser/misc/cmdhistory.py @@ -63,7 +63,6 @@ class History(QObject): super().__init__(parent) self.handle_private_mode = False self._tmphist = None - if history is None: self.history = [] else: @@ -110,7 +109,7 @@ class History(QObject): try: return self._tmphist.previtem() except IndexError: - raise HistoryEndReachedError("History end reached") + raise HistoryEndReachedError def nextitem(self): """Get the next item in the temp history. @@ -122,7 +121,7 @@ class History(QObject): try: return self._tmphist.nextitem() except IndexError: - raise HistoryEndReachedError("History end reached") + raise HistoryEndReachedError def append(self, text): """Append a new item to the history.