Browse Source

Fix #623

pull/630/head
Markus Unterwaditzer 12 years ago
parent
commit
2b30900e2c
  1. 5
      flask/helpers.py

5
flask/helpers.py

@ -247,8 +247,9 @@ def url_for(endpoint, **values):
appctx = _app_ctx_stack.top appctx = _app_ctx_stack.top
reqctx = _request_ctx_stack.top reqctx = _request_ctx_stack.top
if appctx is None: if appctx is None:
raise RuntimeError('Attempted to generate a URL with the application ' raise RuntimeError('Attempted to generate a URL without the '
'context being pushed. This has to be executed ') 'application context being pushed. This has to be '
'executed when application context is available.')
# If request specific information is available we have some extra # If request specific information is available we have some extra
# features that support "relative" urls. # features that support "relative" urls.

Loading…
Cancel
Save