commit | c89f712923fbd4d09375596d28f5f8025dfcd1d8 | [log] [tgz] |
---|---|---|
author | Brendan Jackman <brendan.jackman@arm.com> | Fri Nov 25 11:56:42 2016 +0000 |
committer | Brendan Jackman <brendan.jackman@arm.com> | Fri Nov 25 18:10:06 2016 +0000 |
tree | c7fee1d209a3cc478800dd30c4bf5eee83319131 | |
parent | 290af6619de8cf8145f293c21d60ed98d98b584a [diff] |
cgroups: Raise RuntimeError in freeze if no freezer controller Without this patch, this will result in an error due to trying to call `.cgroup` on None. Making this a RuntimeError instaed means that a) you get a more useful error message and b) you can catch the exception without blanket `except Exception as e`.