]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[EDF28694] Quick fix for BIGOBJ files management emc2p_1.4.0-rc1
authorCédric Aguerre <cedric.aguerre@edf.fr>
Tue, 3 Oct 2023 13:14:01 +0000 (15:14 +0200)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Tue, 3 Oct 2023 13:14:01 +0000 (15:14 +0200)
src/Container/SALOME_PyNode.py

index 1bb41877d1db9f41a55fed7dc982365fc391d531..11dac96765a2edc6fba0284c26eab3493b3e7005 100644 (file)
@@ -151,6 +151,8 @@ def IncrRefInFile(fname):
 
 def DecrRefInFile(fname):
   import os
+  if not os.path.isfile(fname):
+    return
   with open(fname,"rb") as f:
     cntb = f.read( GetSizeOfTCnt() )
   cnt = TypeCounter.from_buffer_copy( cntb ).value