Use sys.exit(...) instead of exit(...): exit(...) should not be used in programs
This commit is contained in:
1 parent
f088a1bb39
commit
25cd520fc4
10 files changed
+30
-28
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user