rduplain/flask-script — Issue #33: IndexError raised by commands is hidden
Author: rduplain
Created: 2012-02-29 15:54:20+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](http://bitbucket.org/miracle2k)
- Originally Created At: 2010-12-07 14:27:24