Skip to content

Commit f50521e

Browse files
committed
Fix python3 tests
1 parent 6e47afc commit f50521e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

flask_script/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ def handle(self, prog, args=None):
314314

315315
## get the handle function and remove it from parsed options
316316
kwargs = app_namespace.__dict__
317-
handle = kwargs.pop('func_handle')
317+
handle = kwargs.pop('func_handle', None)
318+
if not handle:
319+
app_parser.error('too few arguments')
318320

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

requirements.txt

+1-2
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)