summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/fsobject/loader.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/fsobject/loader.py b/ranger/fsobject/loader.py
index aaf38117..3a2020fb 100644
--- a/ranger/fsobject/loader.py
+++ b/ranger/fsobject/loader.py
@@ -1,6 +1,7 @@
 from collections import deque
 from time import time
 from ranger import log
+from ranger.shared import FileManagerAware
 import math
 
 def status_generator():
@@ -20,7 +21,7 @@ class LoadableObject(object):
 		return self.description
 
 
-class Loader(object):
+class Loader(FileManagerAware):
 	seconds_of_work_time = 0.05
 
 	def __init__(self):
@@ -104,6 +105,8 @@ class Loader(object):
 		except StopIteration:
 			item.load_generator = None
 			self.queue.popleft()
+		except Exception as err:
+			self.fm.ui.display(str(err), bad=True)
 	
 	def has_work(self):
 		"""Is there anything to load?"""
f='#n96'>96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160