Closed opirko-ui closed 10 months ago
Try-catch with a void return here https://github.com/click-contrib/click-repl/blob/0c32dce851839fa3dd75648e503ad752c8da878a/click_repl/_completer.py#L277 seems to resolve the issue. But that's just my naive hotfix. @auvipy ?
you can come with a draft PR with the hotfix and some sort of unit test
Very well, created https://github.com/click-contrib/click-repl/pull/109
Hello, When I write an invalid command in Click REPL - e.g. "nonsensicalcmd" the moment I press space after the command I get this:
I would expect that it would write nothing up until the point when I press enter, then I'd expect something like
Error: No such command 'nonsensicalcmd'.
(Click without REPL writes this). It is definitely odd that there's an unhandled exception.Used versions: click 8.1.7 click_repl 0.3.0 Python 3.11.6