Fix syntax error with exception handling

This would results in:

  ValueError: unexpected '{' in field name

Change-Id: I0bb0327c854abbd9dc02818d900706905130efae
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-02-21 20:12:50 -05:00
parent b734a89ab9
commit 41f8ac16d0
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def get_profile(profile_name):
if not response.ok:
raise exceptions.ConfigException(
"{profile_name} is a remote profile that could not be fetched:"
" ({status_code) {reason}".format(
" {status_code} {reason}".format(
profile_name=profile_name,
status_code=response.status_code,
reason=response.reason))