Browse files

Fix python3 tests

  • Loading branch information...
1 parent 6e47afc commit f50521e81303065d7f9b7f7ae98347e9f8af005e @klen klen committed Aug 7, 2013
Showing with 4 additions and 3 deletions.
  1. +3 −1 flask_script/__init__.py
  2. +1 −2 requirements.txt
View
4 flask_script/__init__.py
@@ -314,7 +314,9 @@ def handle(self, prog, args=None):
## get the handle function and remove it from parsed options
kwargs = app_namespace.__dict__
- handle = kwargs.pop('func_handle')
+ handle = kwargs.pop('func_handle', None)
+ if not handle:
+ app_parser.error('too few arguments')
## get only safe config options
app_config_keys = [action.dest for action in app_parser._actions
View
3 requirements.txt
@@ -1,3 +1,2 @@
-git+git://github.com/mitsuhiko/werkzeug.git#egg=werkzeug
-git+git://github.com/mitsuhiko/flask.git#egg=flask
+flask
argparse

0 comments on commit f50521e

Please sign in to comment.