mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-28 08:26:32 +02:00
[node] update Exception class
This commit is contained in:
parent
41e8643834
commit
6acc3fe7fc
1 changed files with 4 additions and 4 deletions
|
@ -25,7 +25,7 @@ def getCgroupMemorySize():
|
||||||
continue
|
continue
|
||||||
if tokens[1] == "memory":
|
if tokens[1] == "memory":
|
||||||
cgroup = tokens[2]
|
cgroup = tokens[2]
|
||||||
except IOError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if cgroup is None:
|
if cgroup is None:
|
||||||
|
@ -38,7 +38,7 @@ def getCgroupMemorySize():
|
||||||
value = f.read().rstrip("\r\n")
|
value = f.read().rstrip("\r\n")
|
||||||
if value.isnumeric():
|
if value.isnumeric():
|
||||||
size = int(value)
|
size = int(value)
|
||||||
except IOError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return size
|
return size
|
||||||
|
@ -80,7 +80,7 @@ def getCgroupCpuCount():
|
||||||
continue
|
continue
|
||||||
if tokens[1] == "cpuset":
|
if tokens[1] == "cpuset":
|
||||||
cgroup = tokens[2]
|
cgroup = tokens[2]
|
||||||
except IOError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if cgroup is None:
|
if cgroup is None:
|
||||||
|
@ -94,7 +94,7 @@ def getCgroupCpuCount():
|
||||||
nlist = parseNumericList(value)
|
nlist = parseNumericList(value)
|
||||||
size = len(nlist)
|
size = len(nlist)
|
||||||
|
|
||||||
except IOError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return size
|
return size
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue