Merge pull request #3728 from nphilipp/master--discover-app-factory-deterministically
Discover app factory deterministically
This commit is contained in:
commit
967b235035
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ def find_best_app(script_info, module):
|
|||
)
|
||||
|
||||
# Search for app factory functions.
|
||||
for attr_name in {"create_app", "make_app"}:
|
||||
for attr_name in ("create_app", "make_app"):
|
||||
app_factory = getattr(module, attr_name, None)
|
||||
|
||||
if inspect.isfunction(app_factory):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue