rduplain/flask-script — Issue #26: IndexError raised by commands is hidden
Author: rduplain
Created: 2012-02-07 18:00:17+00:00
State: open
Labels: bug, import

I've just run into a command which raised an IndexError, which mysteriously resulted in Flask-Script outputing it's help, while swalling the actual exception.

This is due to the way Manager.run() validates the correct number of items in argv.

The check for argv should instead be written as an if-condition.

---------------------------------------
- Bitbucket: https://bitbucket.org/danjac/flask-script/issue/21
- Originally Reported By: Michael Elsdörfer
- Originally Created At: 2010-12-07 14:27:24