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
@@ -114,7 +114,7 @@ def process_nodes(g, f, structname, defaultport):
|
||||
def main():
|
||||
if len(sys.argv)<2:
|
||||
print(('Usage: %s <path_to_nodes_txt>' % sys.argv[0]), file=sys.stderr)
|
||||
exit(1)
|
||||
sys.exit(1)
|
||||
g = sys.stdout
|
||||
indir = sys.argv[1]
|
||||
g.write('#ifndef BITCOIN_CHAINPARAMSSEEDS_H\n')
|
||||
|
||||
Reference in new issue
Block a user