From 6acc3fe7fcc6dd1736f558bb5ccca6176cda5c90 Mon Sep 17 00:00:00 2001 From: fabien servant Date: Wed, 7 Dec 2022 17:53:06 +0100 Subject: [PATCH] [node] update Exception class --- meshroom/core/cgroup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meshroom/core/cgroup.py b/meshroom/core/cgroup.py index 4a38a8eb..2a48aa25 100755 --- a/meshroom/core/cgroup.py +++ b/meshroom/core/cgroup.py @@ -25,7 +25,7 @@ def getCgroupMemorySize(): continue if tokens[1] == "memory": cgroup = tokens[2] - except IOError: + except OSError: pass if cgroup is None: @@ -38,7 +38,7 @@ def getCgroupMemorySize(): value = f.read().rstrip("\r\n") if value.isnumeric(): size = int(value) - except IOError: + except OSError: pass return size @@ -80,7 +80,7 @@ def getCgroupCpuCount(): continue if tokens[1] == "cpuset": cgroup = tokens[2] - except IOError: + except OSError: pass if cgroup is None: @@ -94,7 +94,7 @@ def getCgroupCpuCount(): nlist = parseNumericList(value) size = len(nlist) - except IOError: + except OSError: pass return size