cubicweb/server/migractions.py
changeset 11273 c655e19cbc35
parent 11057 0b59724cb3f2
child 11348 70337ad23145
--- a/cubicweb/server/migractions.py	Wed May 25 09:51:51 2016 +0200
+++ b/cubicweb/server/migractions.py	Tue Jun 07 10:05:30 2016 +0200
@@ -1369,7 +1369,7 @@
             getattr(entity, attribute)
             storage.migrate_entity(entity, attribute)
             # remove from entity cache to avoid memory exhaustion
-            del entity.cw_attr_cache[attribute]
+            entity.cw_attr_cache.pop(attribute, None)
             pb.update()
         print()
         source.set_storage(etype, attribute, storage)