Skip to content

Commit d816f0e

Browse files
committed
Pass an initial non-None app to create_app
1 parent e5ee97b commit d816f0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flask_script/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ def handle(self, prog, args=None):
355355
app_parser.error('too many arguments')
356356

357357
args = []
358+
if self.app is not None:
359+
args.append(self.app)
358360
for handle in func_stack:
359361

360362
# get only safe config options

0 commit comments

Comments
 (0)