2
0
mirror of https://github.com/lanjelot/patator synced 2024-11-10 01:13:31 +00:00
This commit is contained in:
lanjelot 2017-03-01 14:15:38 +11:00
parent 7004b26c98
commit 70335cafe2

View File

@ -1848,7 +1848,10 @@ Please read the README inside for more examples and usage information.
enable_alarm(self.timeout) enable_alarm(self.timeout)
resp = module.execute(**payload) resp = module.execute(**payload)
disable_alarm()
except: except:
disable_alarm()
mesg = '%s %s' % sys.exc_info()[:2] mesg = '%s %s' % sys.exc_info()[:2]
logger.debug('caught: %s' % mesg) logger.debug('caught: %s' % mesg)
@ -1862,9 +1865,6 @@ Please read the README inside for more examples and usage information.
sleep(try_count * .1) sleep(try_count * .1)
continue continue
finally:
disable_alarm()
else: else:
actions = {'fail': None} actions = {'fail': None}