From 2d55832729ec3e8481e2b04c9a66882871cb17d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Wed, 4 Mar 2020 00:27:48 +0100 Subject: [PATCH] Add missing format arguments for error message --- powerdnsadmin/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/lib/utils.py b/powerdnsadmin/lib/utils.py index b5eed1d..1169402 100644 --- a/powerdnsadmin/lib/utils.py +++ b/powerdnsadmin/lib/utils.py @@ -57,7 +57,7 @@ def fetch_remote(remote_url, if r.status_code not in (200, 201, 204, 400, 409, 422): r.raise_for_status() 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( remote_url, msg))