Skip to content

Commit 9c6594f

Browse files
committed
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 ```
1 parent 082add7 commit 9c6594f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/seeds/makeseeds.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def main():
150150
else:
151151
mns = json.load(sys.stdin)
152152

153+
onions = []
153154
if len(sys.argv) > 2:
154155
with open(sys.argv[2], 'r', encoding="utf8") as f:
155156
onions = f.read().split('\n')

0 commit comments

Comments
 (0)