fix: forget return value after run_method execution

This commit is contained in:
Sagar Vora 2022-02-16 14:04:41 +05:30
parent a8a544cf44
commit 741ea13db2

View file

@ -1154,7 +1154,7 @@ class Document(BaseDocument):
for f in hooks:
add_to_return_value(self, f(self, method, *args, **kwargs))
return self._return_value
return self.__dict__.pop("_return_value", None)
return runner