mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
Use IndexError in exception (#49488)
This commit is contained in:
parent
7c15417f62
commit
6200d32c0d
2 changed files with 3 additions and 1 deletions
|
@ -185,7 +185,7 @@ class ActionModule(ActionBase):
|
|||
if action_desc:
|
||||
try:
|
||||
error = to_text(e).splitlines()[-1]
|
||||
except TypeError as e:
|
||||
except IndexError as e:
|
||||
error = to_text(e)
|
||||
display.debug("{0}: {1} fail '{2}', retrying in {3:.4} seconds...".format(self._task.action, action_desc,
|
||||
error, fail_sleep))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue