mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
fix: uninitialized variable onions in makeseeds script
``` $ ./makeseeds.py protx.txt > nodes_main.txt Traceback (most recent call last): File "DASH/contrib/seeds/./makeseeds.py", line 183, in <module> main() File "DASH/contrib/seeds/./makeseeds.py", line 167, in main for onion in onions: ^^^^^^ UnboundLocalError: cannot access local variable 'onions' where it is not associated with a value ```
This commit is contained in:
parent
b8395aa4e6
commit
151b56eacd
@ -150,6 +150,7 @@ def main():
|
|||||||
else:
|
else:
|
||||||
mns = json.load(sys.stdin)
|
mns = json.load(sys.stdin)
|
||||||
|
|
||||||
|
onions = []
|
||||||
if len(sys.argv) > 2:
|
if len(sys.argv) > 2:
|
||||||
with open(sys.argv[2], 'r', encoding="utf8") as f:
|
with open(sys.argv[2], 'r', encoding="utf8") as f:
|
||||||
onions = f.read().split('\n')
|
onions = f.read().split('\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user