From ae6a58b6fc043fb14cec67ae24fa6201f91dd7ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Tue, 3 Oct 2023 15:14:01 +0200 Subject: [PATCH] [EDF28694] Quick fix for BIGOBJ files management --- src/Container/SALOME_PyNode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Container/SALOME_PyNode.py b/src/Container/SALOME_PyNode.py index 1bb41877d..11dac9676 100644 --- a/src/Container/SALOME_PyNode.py +++ b/src/Container/SALOME_PyNode.py @@ -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 -- 2.39.2