Merge pull request #35 from pebenito/master
genhomedircon.py: Fix top-level exception handling.
This commit is contained in:
commit
af68a29b42
@ -486,9 +486,5 @@ try:
|
|||||||
selconf=selinuxConfig(directory, setype, usepwd)
|
selconf=selinuxConfig(directory, setype, usepwd)
|
||||||
selconf.write()
|
selconf.write()
|
||||||
|
|
||||||
except getopt.error as error:
|
except Exception as error:
|
||||||
errorExit("Options Error " + error)
|
errorExit(error)
|
||||||
except ValueError as error:
|
|
||||||
errorExit("ValueError " + error)
|
|
||||||
except IndexError:
|
|
||||||
errorExit("IndexError")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user