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.write()
|
||||
|
||||
except getopt.error as error:
|
||||
errorExit("Options Error " + error)
|
||||
except ValueError as error:
|
||||
errorExit("ValueError " + error)
|
||||
except IndexError:
|
||||
errorExit("IndexError")
|
||||
except Exception as error:
|
||||
errorExit(error)
|
||||
|
Loading…
Reference in New Issue
Block a user