mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
Use sys.exit(...) instead of exit(...): exit(...) should not be used in programs
This commit is contained in:
@@ -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