Skip to content

Commit

Permalink
Removed try block from eos connector
Browse files Browse the repository at this point in the history
Removing try/except from eos connector allows more verbose output when an error is encountered. The appropriate error handling can then be incorporated into the calling module.
  • Loading branch information
bobbywatson3 committed Feb 7, 2017
1 parent 73a945c commit c4006d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pylib/aeon/eos/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ def execute(self, commands):
commands = commands if isinstance(commands, list) else [commands]
commands.insert(0, 'enable')

try:
got = self.eapi.execute(commands)
except Exception as exc:
raise CommandError(exc=exc, commands=commands)
got = self.eapi.execute(commands)

# get the results. if ther was only one command return the actual
# results item (vs. making the caller do [0]).
Expand Down

0 comments on commit c4006d2

Please sign in to comment.