From f906fa34a56185c6da816f7912d30ca6fa8be6d5 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 10 Feb 2017 15:15:29 +0100 Subject: Return content of result response, not the Response object. --- tools/getconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/getconfig.py b/tools/getconfig.py index e6277e9..6195a52 100755 --- a/tools/getconfig.py +++ b/tools/getconfig.py @@ -15,7 +15,7 @@ def get_file(configurl): if configurl.startswith("https://") or configurl.startswith("http://"): result = urlget(configurl) result.raise_for_status() - return result + return result.content elif configurl.startswith("file:///"): path = configurl[8:] path = path.replace("CURRENTWORKINGDIRECTORY", os.getcwd()) -- cgit v1.1