Skip to content

Commit 9b94054

Browse files
Avoid reference to undefined name: stderr does not exist, sys.stderr does
1 parent 51cb6b8 commit 9b94054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/linearize/linearize-hashes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def get_rpc_cookie():
140140
if 'datadir' in settings and not use_userpass:
141141
use_datadir = True
142142
if not use_userpass and not use_datadir:
143-
print("Missing datadir or username and/or password in cfg file", file=stderr)
143+
print("Missing datadir or username and/or password in cfg file", file=sys.stderr)
144144
sys.exit(1)
145145

146146
settings['port'] = int(settings['port'])

0 commit comments

Comments
 (0)