diff options
author | Linus Nordberg <linus@nordu.net> | 2017-02-10 15:15:29 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-02-10 15:15:29 +0100 |
commit | f906fa34a56185c6da816f7912d30ca6fa8be6d5 (patch) | |
tree | fa99a1e3fabdd6b61f90eefcfa9bd7089e8b64f4 | |
parent | 966fe9923cbeb2080ef012ba694e03ea0c0f27b6 (diff) |
Return content of result response, not the Response object.
-rwxr-xr-x | tools/getconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |