From 81cd0b9e3261bdd3510ab707ec59923c1978fc2f Mon Sep 17 00:00:00 2001 From: Matt Wheeler Date: Fri, 31 May 2019 13:10:32 +0100 Subject: [PATCH 1/2] correctly report number of tries --- radius.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radius.py b/radius.py index 6f6fbf0..084542f 100755 --- a/radius.py +++ b/radius.py @@ -546,7 +546,7 @@ def attempt(res): 'Sending (as hex): %s', ':'.join(format(ord(c), '02x') for c in send)) - for i in range(self.retries): + for i in range(1, self.retries+1): for res in addrs: try: return attempt(res) From eaff144906d7f01a965863e33ac604e9040f3499 Mon Sep 17 00:00:00 2001 From: Matt Wheeler Date: Fri, 31 May 2019 13:25:14 +0100 Subject: [PATCH 2/2] flake8 whoops --- radius.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radius.py b/radius.py index 084542f..be34a1f 100755 --- a/radius.py +++ b/radius.py @@ -546,7 +546,7 @@ def attempt(res): 'Sending (as hex): %s', ':'.join(format(ord(c), '02x') for c in send)) - for i in range(1, self.retries+1): + for i in range(1, self.retries + 1): for res in addrs: try: return attempt(res)