From b466f7bbe2a9f9c3aaf901df79e6cb3773d6efec Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Mon, 25 Apr 2016 13:26:06 -0400 Subject: [PATCH] Remove unnecessary exception from nxos_command (#3521) --- network/nxos/nxos_command.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/network/nxos/nxos_command.py b/network/nxos/nxos_command.py index 21a6b56628c..2e09584dcc5 100644 --- a/network/nxos/nxos_command.py +++ b/network/nxos/nxos_command.py @@ -157,12 +157,8 @@ def main(): kwargs['command_type'] = 'cli_show' while retries > 0: - try: - response = module.execute(commands, **kwargs) - result['stdout'] = response - except ShellError, exc: - module.fail_json(msg='failed to run commands', exc=exc.message, - command=exc.command) + response = module.execute(commands, **kwargs) + result['stdout'] = response for index, cmd in enumerate(commands): if cmd.endswith('json'):