mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 23:20:27 +00:00
Add missing format arguments for error message
This commit is contained in:
parent
52eb62a911
commit
2d55832729
@ -57,7 +57,7 @@ def fetch_remote(remote_url,
|
|||||||
if r.status_code not in (200, 201, 204, 400, 409, 422):
|
if r.status_code not in (200, 201, 204, 400, 409, 422):
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
msg = "Returned status {0} and content {1}"
|
msg = "Returned status {0} and content {1}".format(r.status_code, r.text)
|
||||||
raise RuntimeError('Error while fetching {0}. {1}'.format(
|
raise RuntimeError('Error while fetching {0}. {1}'.format(
|
||||||
remote_url, msg))
|
remote_url, msg))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user