First we attempt import of click.exceptions.Exit, but if it doesn't exist we polyfill with a local exception class ClickExit (that will never be thrown, of course).
Test approach:
Manually tested using the example code in click-contrib/click-repl#50.
First we attempt import of
click.exceptions.Exit
, but if it doesn't exist we polyfill with a local exception classClickExit
(that will never be thrown, of course).Test approach:
Fixes click-contrib/click-repl#47 Fixes click-contrib/click-repl#50