diff options
author | Von Random <von@vdrandom.org> | 2018-11-09 14:44:47 +0300 |
---|---|---|
committer | Von Random <von@vdrandom.org> | 2018-11-09 14:44:47 +0300 |
commit | 27160d61bda59d7112786d933774ed0ba446bd50 (patch) | |
tree | b0ef7256c5b7226c7c711c847f31b384199a6f43 | |
parent | c6a995caee4c6daa76cd00c4b8a71cbfe719bf4f (diff) |
reverse retry condition
-rw-r--r-- | plugins/fga.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/fga.py b/plugins/fga.py index 9e41826..4a5da75 100644 --- a/plugins/fga.py +++ b/plugins/fga.py @@ -16,13 +16,13 @@ class PluginThread(plugins.PluginThreadCommon): try: req = requests.get(URI, timeout=2) advice = req.json()['text'] if req.status_code == 200 else 'N/A' - self.retry = True + self.retry = False except requests.exceptions.Timeout: advice = 'N/A (timeout)' - self.retry = False + self.retry = True except requests.exceptions.ConnectionError: advice = 'N/A (offline)' - self.retry = False + self.retry = True self.status['full_text'] = advice |