forked from orbit-oss/flask
Fixed an error reporting bug with flask.Config.from_envvar
This commit is contained in:
parent
6913dc1733
commit
6cb0855e2d
3 changed files with 29 additions and 1 deletions
3
flask.py
3
flask.py
|
|
@ -698,7 +698,8 @@ class Config(dict):
|
|||
raise RuntimeError('The environment variable %r is not set '
|
||||
'and as such configuration could not be '
|
||||
'loaded. Set this variable and make it '
|
||||
'point to a configuration file')
|
||||
'point to a configuration file' %
|
||||
variable_name)
|
||||
self.from_pyfile(rv)
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue