Merge pull request #35 from pebenito/master

genhomedircon.py: Fix top-level exception handling.
This commit is contained in:
Chris PeBenito 2019-03-17 16:30:42 -04:00 committed by GitHub
commit af68a29b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)