Minor fix. See #1567.

This commit is contained in:
Dion Moult
2021-07-17 18:38:04 +10:00
parent 99e74533c3
commit cccab9e751
+3 -3
View File
@@ -290,9 +290,6 @@ class file(object):
if attrs:
self.transaction = transaction
if self.transaction:
self.transaction.store_create(e)
# Once the values are populated add the instance
# to the file.
self.wrapped_data.add(e.wrapped_data, eid)
@@ -302,6 +299,9 @@ class file(object):
# the owner.
e.wrapped_data.this.disown()
if self.transaction:
self.transaction.store_create(e)
return e
def __getattr__(self, attr):