We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f3139 commit 9965f6eCopy full SHA for 9965f6e
cylc/flow/scripts/profiler.py
@@ -27,7 +27,6 @@
27
import signal
28
from pathlib import Path
29
from dataclasses import dataclass
30
-from typing import Callable, Optional
31
from cylc.flow.terminal import cli_function
32
from cylc.flow.option_parsers import CylcOptionParser as COP
33
@@ -125,7 +124,8 @@ def get_cgroup_name():
125
124
result = PID_REGEX.search(result).group()
126
return result
127
except FileNotFoundError as err:
128
- raise FileNotFoundError('/proc/' + str(pid) + '/cgroup not found')
+ raise FileNotFoundError(
+ '/proc/' + str(pid) + '/cgroup not found') from err
129
130
except AttributeError as err:
131
raise AttributeError("No cgroup found for process:", pid) from err
0 commit comments