8000 Merge branch 'klen-python3' · smurfix/flask-script@5f11e18 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 5f11e18

Browse files
committed
Merge branch 'klen-python3'
2 parents cf3f640 + e15a5e5 commit 5f11e18

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

flask_script/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ def handle(self, prog, args=None):
307307

308308
# get the handle function and remove it from parsed options
309309
kwargs = app_namespace.__dict__
310-
handle = kwargs.pop('func_handle')
310+
handle = kwargs.pop('func_handle', None)
311+
if not handle:
312+
app_parser.error('too few arguments')
311313

312314
# get only safe config options
313315
app_config_keys = [action.dest for action in app_parser._actions

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
git+git://github.com/mitsuhiko/werkzeug.git#egg=werkzeug
2-
git+git://github.com/mitsuhiko/flask.git#egg=flask
1+
flask
32
argparse

0 commit comments

Comments
 (0)
0