Skip to content

Commit

Permalink
Exceptions now provide useful info (#20)
Browse files Browse the repository at this point in the history
* Exceptions now display original exception and error message
  • Loading branch information
bobbywatson3 committed Apr 5, 2017
1 parent c188454 commit 0ac7e2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pylib/aeon/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ class TimeoutError(Exception):

class ConfigError(Exception):
def __init__(self, exc, contents):
super(ConfigError, self).__init__()
super(ConfigError, self).__init__(exc, contents)
self.exc = exc
self.contents = contents


class CommandError(Exception):
def __init__(self, exc, commands):
super(CommandError, self).__init__()
super(CommandError, self).__init__(exc, commands)
self.exc = exc
self.commands = commands

Expand All @@ -39,7 +39,7 @@ def __repr__(self):

class LoginNotReadyError(Exception):
def __init__(self, exc, message):
super(LoginNotReadyError, self).__init__()
super(LoginNotReadyError, self).__init__(exc, message)
self.exc = exc
self.message = message

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
setup(
name="aeon-venos",
namespace_packages=['aeon'],
version="0.5.0",
version="0.5.1",
author="Jeremy Schulman",
url='https://github.com/Apstra/aeon-venos',
author_email="jeremy@apstra.com",
Expand Down

0 comments on commit 0ac7e2b

Please sign in to comment.