Преглед на файлове

temporary hack until proper fix is in place

Justin Butler преди 19 години
родител
ревизия
b27677c479
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      direct/src/distributed/DoHierarchy.py

+ 4 - 1
direct/src/distributed/DoHierarchy.py

@@ -68,7 +68,10 @@ class DoHierarchy:
 
 
     def deleteObjectLocation(self, doId, parentId, zoneId):
     def deleteObjectLocation(self, doId, parentId, zoneId):
         assert self.notify.debugCall()
         assert self.notify.debugCall()
-        assert doId in self._allDoIds
+        #assert doId in self._allDoIds
+        # jbutler: temp hack to get by the assert, this will be fixed soon
+        if (doId not in self._allDoIds):
+            return
         parentZoneDict = self._table.get(parentId)
         parentZoneDict = self._table.get(parentId)
         if parentZoneDict is not None:
         if parentZoneDict is not None:
             zoneDoSet = parentZoneDict.get(zoneId)
             zoneDoSet = parentZoneDict.get(zoneId)