forked from orbit-oss/flask
Fix #623
This commit is contained in:
parent
ff2e8449ff
commit
2b30900e2c
1 changed files with 3 additions and 2 deletions
|
|
@ -247,8 +247,9 @@ def url_for(endpoint, **values):
|
|||
appctx = _app_ctx_stack.top
|
||||
reqctx = _request_ctx_stack.top
|
||||
if appctx is None:
|
||||
raise RuntimeError('Attempted to generate a URL with the application '
|
||||
'context being pushed. This has to be executed ')
|
||||
raise RuntimeError('Attempted to generate a URL without the '
|
||||
'application context being pushed. This has to be '
|
||||
'executed when application context is available.')
|
||||
|
||||
# If request specific information is available we have some extra
|
||||
# features that support "relative" urls.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue