about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/ext/lazy_property.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/lazy_property.py b/ranger/ext/lazy_property.py
index c468a8c9..ccd1586e 100644
--- a/ranger/ext/lazy_property.py
+++ b/ranger/ext/lazy_property.py
@@ -50,9 +50,9 @@ class lazy_property(object):  # pylint: disable=invalid-name,too-few-public-meth
             setattr(obj, self.__name__, self)
             del obj.__dict__[self.__name__]  # force "__get__" being called
 
+        obj.__dict__[self.__name__ + "__reset"] = reset_function
         result = self._method(obj)
         obj.__dict__[self.__name__] = result
-        obj.__dict__[self.__name__ + "__reset"] = reset_function
         return result