summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcmd2.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd2.py b/cmd2.py
index d2cae8f7..f01067a9 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1688,10 +1688,6 @@ Edited files are run on close if the ``autorun_on_edit`` settable parameter is T
# Make sure the index is actually within the history
if 1 <= history_idx <= len(self.history):
history_item = self._last_matching(history_idx)
- if history_item is None:
- self.perror('index {!r} does not exist within the history'.format(orig_indx),
- traceback_war=False)
- return
else:
self.perror('index {!r} does not exist within the history'.format(orig_indx), traceback_war=False)
return