From f5d0be55a48ee7e9317279cd90b236cbb75c8122 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Wed, 8 May 2019 13:27:44 +0100 Subject: [PATCH] get_timezone_for_ip: Just use api_url directly I don't remember why we manually try to reformat the service URL, but we can just use api_url now. --- tzupdate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tzupdate.py b/tzupdate.py index 42b6d97..4ff2344 100755 --- a/tzupdate.py +++ b/tzupdate.py @@ -101,7 +101,7 @@ def get_timezone_for_ip(ip, service, queue_obj): msg = get_deep(api_response, service.error_keys) except KeyError: pass - log.debug("%s failed: %s", service.url.format(ip=""), msg) + log.debug("%s failed: %s", api_url, msg) else: queue_obj.put(tz)