prevent NoAppException when ImportError occurs within imported module

This commit is contained in:
Paul Brown 2016-12-30 15:02:08 -06:00 committed by Markus Unterwaditzer
parent 789715adb9
commit 0832e77b14
3 changed files with 18 additions and 4 deletions

View file

@ -0,0 +1,7 @@
from __future__ import absolute_import, print_function
from flask import Flask
raise ImportError()
testapp = Flask('testapp')