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

This commit is contained in:
practicalswift committed 2017-08-28 15:18:14 +02:00
1 parent f088a1bb39
commit 25cd520fc4
10 files changed
+30 -28

No files matched your search

+1 -1
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
+1 -1
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