policycoreutils: semanage: handle os errors
Rather than traceback, handle os errors and exit cleanly. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
b5c0a182ef
commit
f2a74f4f87
|
@ -467,3 +467,5 @@ Object-specific Options (see above):
|
|||
errorExit(_("Invalid value %s") % error.args[0])
|
||||
except IOError, error:
|
||||
errorExit(error.args[1])
|
||||
except OSError, error:
|
||||
errorExit(error.args[1])
|
||||
|
|
Loading…
Reference in New Issue