diff options
-rw-r--r-- | ranger/core/tab.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/core/tab.py b/ranger/core/tab.py index 64edf120..1771ffa2 100644 --- a/ranger/core/tab.py +++ b/ranger/core/tab.py @@ -69,7 +69,10 @@ class Tab(FileManagerAware, SettingsAware): # pylint: disable=too-many-instance def _set_pointer(self, value): self._pointer = value - self._pointed_obj = self.thisdir.files[self._pointer] + try: + self._pointed_obj = self.thisdir.files[self._pointer] + except TypeError: + pass pointer = property(_get_pointer, _set_pointer) |