From d0741946c7f982286cb709c23850f95769414ec6 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Thu, 28 Jun 2018 10:19:48 -0500 Subject: [PATCH] Fix a typo (#1813) an -> a --- mongoengine/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoengine/document.py b/mongoengine/document.py index 0d471c3a..c8532e5b 100644 --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -715,7 +715,7 @@ class Document(BaseDocument): except (KeyError, AttributeError): try: # If field is a special field, e.g. items is stored as _reserved_items, - # an KeyError is thrown. So try to retrieve the field from _data + # a KeyError is thrown. So try to retrieve the field from _data setattr(self, field, self._reload(field, obj._data.get(field))) except KeyError: # If field is removed from the database while the object