Use sys.exit(...) instead of exit(...): exit(...) should not be used in programs

This commit is contained in:
practicalswift
2017-07-09 22:57:02 +02:00
parent f088a1bb39
commit 25cd520fc4
10 changed files with 30 additions and 28 deletions

View File

@@ -32,7 +32,7 @@ import sys
if not (sys.version_info.major >= 3 and sys.version_info.minor >= 5):
print("This example only works with Python 3.5 and greater")
exit(1)
sys.exit(1)
port = 28332

View File

@@ -36,7 +36,7 @@ import sys
if not (sys.version_info.major >= 3 and sys.version_info.minor >= 4):
print("This example only works with Python 3.4 and greater")
exit(1)
sys.exit(1)
port = 28332