fix variable substitution in error message

This commit is contained in:
Miguel Grinberg 2017-06-27 07:27:10 -07:00
parent 1a6ed989db
commit 0a83a341b9

View file

@ -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