LGTM: Use of exit() or quit()

Replace exit() with sys.exit(). exit() or quit() may fail if the interpreter
is run with the -S option.

https://pagure.io/freeipa/issue/7344

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
This commit is contained in:
Christian Heimes
2018-01-03 10:08:50 +01:00
parent cae2d99f89
commit 1ed4461f33
5 changed files with 22 additions and 16 deletions

View File

@@ -453,4 +453,4 @@ class TaskRunner(object):
tasks.add_a_record(master, host)
if __name__ == '__main__':
exit(TaskRunner().main(sys.argv[1:]))
sys.exit(TaskRunner().main(sys.argv[1:]))