diff --git a/changelog.md b/changelog.md index 54832294..251a5b4f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,11 @@ +Upcoming (TBD) +============== + +Bug Fixes +-------- +* Fix the infinite looping when `\llm` is called without args. + + 1.38.2 (2025/08/19) ====================== diff --git a/mycli/main.py b/mycli/main.py index c9322258..d57bd0ca 100755 --- a/mycli/main.py +++ b/mycli/main.py @@ -808,7 +808,9 @@ def one_iteration(text: str | None = None) -> None: return except special.FinishIteration as e: if e.results: - output_res(e.results, start) + return output_res(e.results, start) + else: + return None except RuntimeError as e: logger.error("sql: %r, error: %r", text, e) logger.error("traceback: %r", traceback.format_exc())