summaryrefslogtreecommitdiff
path: root/hacking/report.py
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2017-12-06 10:29:17 +0530
committerBrian Coca <bcoca@users.noreply.github.com>2017-12-14 22:03:08 -0500
commit36f82ae8cc35415123ca4a69fe79e9a50388862b (patch)
treee6d5abc7ba8def82b923996fe03c6c2d40fe5ac9 /hacking/report.py
parent0ca828ebab48b18a7c4bc1770efce96c6579b2df (diff)
downloadansible-36f82ae8cc35415123ca4a69fe79e9a50388862b.tar.gz
Replace exit() with sys.exit()
This fix adds replacement for exit() to sys.exit(), as exit() is not recommended way to exit from the program. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'hacking/report.py')
-rwxr-xr-xhacking/report.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hacking/report.py b/hacking/report.py
index 1c530a7653..ddf3f33eba 100755
--- a/hacking/report.py
+++ b/hacking/report.py
@@ -63,7 +63,7 @@ def parse_args():
def query_database():
if not os.path.exists(DATABASE_PATH):
- exit('error: Database not found. Did you run `report.py populate` first?')
+ sys.exit('error: Database not found. Did you run `report.py populate` first?')
os.execvp('sqlite3', ('sqlite3', DATABASE_PATH))