click-contrib / click-repl

Subcommand REPL for click apps
MIT License
215 stars 41 forks source link

Handle click.exceptions.Exit, introduced in Click 7.0 #51

Closed theazureshadow closed 5 years ago

theazureshadow commented 5 years ago

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:

Fixes click-contrib/click-repl#47 Fixes click-contrib/click-repl#50

untitaker commented 5 years ago

Done, thanks!

cc @WhyNotHugo