From 70335cafe2087b5e29832f92f07cf7d82490efa9 Mon Sep 17 00:00:00 2001 From: lanjelot Date: Wed, 1 Mar 2017 14:15:38 +1100 Subject: [PATCH] Fixes #23 --- patator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patator.py b/patator.py index 6d84330..3655de9 100755 --- a/patator.py +++ b/patator.py @@ -1848,7 +1848,10 @@ Please read the README inside for more examples and usage information. enable_alarm(self.timeout) resp = module.execute(**payload) + disable_alarm() except: + disable_alarm() + mesg = '%s %s' % sys.exc_info()[:2] logger.debug('caught: %s' % mesg) @@ -1862,9 +1865,6 @@ Please read the README inside for more examples and usage information. sleep(try_count * .1) continue - finally: - disable_alarm() - else: actions = {'fail': None}