Browse Source

fix variable substitution in error message

pull/2398/head
Miguel Grinberg 8 years ago
parent
commit
4f30cb7c57
No known key found for this signature in database
GPG Key ID: 36848B262DF5F06C
  1. 7
      flask/cli.py

7
flask/cli.py

@ -203,9 +203,10 @@ def locate_app(script_info, app_id, raise_if_not_found=True):
)
elif raise_if_not_found:
raise NoAppException(
'The file/path provided (%s) does not appear to exist. Please'
' verify the path is correct. If app is not on PYTHONPATH,'
' ensure the extension is .py.'.format(module=module)
'The file/path provided ({module}) does not appear to exist.'
' Please verify the path is correct. If app is not on'
' PYTHONPATH, ensure the extension is .py.'.format(
module=module)
)
else:
return

Loading…
Cancel
Save