From 51d72b7dab773cfcb16720a6b3fa99caa2f1408f Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Mon, 23 Mar 2026 15:04:19 -0400 Subject: [PATCH] --throttle should take a float, not an int --- mycli/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mycli/main.py b/mycli/main.py index 0b9ce50e..3463d68a 100755 --- a/mycli/main.py +++ b/mycli/main.py @@ -2158,7 +2158,7 @@ class CliArgs: help='Format for batch or --execute output.', ) throttle: float = clickdc.option( - type=int, + type=float, default=0.0, help='Pause in seconds between queries in batch mode.', ) @@ -2702,7 +2702,7 @@ def dispatch_batch_statements(statements: str, batch_counter: int) -> None: sys.exit(1) try: if warn_confirmed: - if cli_args.throttle and batch_counter >= 1: + if cli_args.throttle > 0 and batch_counter >= 1: sleep(cli_args.throttle) mycli.run_query(statements, checkpoint=cli_args.checkpoint, new_line=True) except Exception as e: