policycoreutils: semanage: Catch RuntimeErrors, that can be generated when SELinux is disabled
Exit cleanly instead of python getting angry when SELinux is disabled. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
7bfaa63839
commit
42a523c0bd
|
@ -564,3 +564,5 @@ Object-specific Options (see above):
|
|||
errorExit(error.args[1])
|
||||
except OSError, error:
|
||||
errorExit(error.args[1])
|
||||
except RuntimeError, error:
|
||||
errorExit(error.args[0])
|
||||
|
|
Loading…
Reference in New Issue