Skip to content

Commit

Permalink
Pass cumulus connector exceptions directly (#6) (#7)
Browse files Browse the repository at this point in the history
* Pass cumulus connector exceptions directly.

Previously, if exceptions were caught, a "LoginNotReadyError"
was raised. After this change, the specific exception is raised.

* uprev
  • Loading branch information
bobbywatson3 authored Jan 18, 2017
1 parent 6809dd3 commit ba982b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pylib/aeon/cumulus/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def open(self):
self.hostname, port=self.port,
username=self.user, password=self.passwd)

except Exception as exc:
raise LoginNotReadyError(exc=exc, message=exc.message)
except Exception as e:
raise

def close(self):
self._client.close()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
setup(
name="aeon-venos",
namespace_packages=['aeon'],
version="0.3.0",
version="0.3.1",
author="Jeremy Schulman",
author_email="jeremy@apstra.com",
description=("Aeon vendor NOS driver library"),
Expand Down

0 comments on commit ba982b5

Please sign in to comment.