From dccf0ee7560866ae6232d49e8743fe093199ef1f Mon Sep 17 00:00:00 2001 From: Girts <opensource@girts.me> Date: Tue, 29 Jan 2019 07:50:09 -0800 Subject: [PATCH] parse "retries" from config as int --- gandi_ddns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gandi_ddns.py b/gandi_ddns.py index 170a41f..8b05eba 100755 --- a/gandi_ddns.py +++ b/gandi_ddns.py @@ -100,7 +100,7 @@ def main(): url = '%sdomains/%s/records/%s/A' % (config.get(section, 'api'), config.get(section, 'domain'), config.get(section, 'a_name')) print(url) #Discover External IP - retries = config.get(section, 'retries', fallback=DEFAULT_RETRIES) + retries = int(config.get(section, 'retries', fallback=DEFAULT_RETRIES)) external_ip = get_ip(retries) print(('External IP is: %s' % external_ip)) -- GitLab