You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is no longer possible in gearbox and requires to call sys.exit which abruptly quits the application. raising BadCommand and trapping it into gearbox as a signal that you shoudl gracefully quit was a better pattern.
By default it should quit with a 1 exit code, but it should be possible to provide a custom one when raising the BadComand exception.
The text was updated successfully, but these errors were encountered:
Paster BadCommand is not available and must be handled manually, terminating
with sys.exit(1).
In Paster raising an exception named
BadCommand
allowed to quit with an error message ( see https://github.com/Pylons/pylons/blob/master/pylons/commands.py#L107 ).This is no longer possible in gearbox and requires to call
sys.exit
which abruptly quits the application. raising BadCommand and trapping it into gearbox as a signal that you shoudl gracefully quit was a better pattern.By default it should quit with a
1
exit code, but it should be possible to provide a custom one when raising theBadComand
exception.The text was updated successfully, but these errors were encountered: