From 61445d8d8427862b9e8359fd826709d3a68321a3 Mon Sep 17 00:00:00 2001 From: Rima <153289003+casks-mutters@users.noreply.github.com> Date: Mon, 17 Nov 2025 04:20:10 -0500 Subject: [PATCH] =?UTF-8?q?Use=20stderr=20for=20=E2=80=9Cstart=20block=20c?= =?UTF-8?q?annot=20be=20negative=E2=80=9D=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Small consistency fix --- slot_change_stream.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slot_change_stream.py b/slot_change_stream.py index e7332d2..72ad8a8 100644 --- a/slot_change_stream.py +++ b/slot_change_stream.py @@ -102,7 +102,9 @@ def stream(args): # Start from either user-specified block or tip current = args.start if args.start is not None else w3.eth.block_number - if current < 0: print("❌ start block cannot be negative."); sys.exit(2) + if current < 0: + print("❌ start block cannot be negative.", file=sys.stderr) + sys.exit(2) while not stop_flag["stop"]: if not w3.is_connected(): print("🔌 Reconnecting RPC…"); w3 = connect(args.rpc)