8000 except OSError (#448) · benxiaolang-hacker/client_python@bbbe23d · GitHub
[go: up one dir, main page]

Skip to content

Commit bbbe23d

Browse files
Stelminatorbrian-brazil
authored andcommitted
except OSError (prometheus#448)
Signed-off-by: Christopher A. Stelma <christopher@getaround.com>
1 parent 710f6d2 commit bbbe23d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus_client/process_collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, namespace='', pid=lambda: 'self', proc='/proc', registry=REGI
3030
self._ticks = 100.0
3131
try:
3232
self._ticks = os.sysconf('SC_CLK_TCK')
33-
except (ValueError, TypeError, AttributeError):
33+
except (ValueError, TypeError, AttributeError, OSError):
3434
pass
3535

3636
# This is used to test if we can access /proc.

0 commit comments

Comments
 (0)
0