Skip to content

Commit

Permalink
Merge pull request #211 from jeremyschulman/master
Browse files Browse the repository at this point in the history
support for stringification of ConnectError expections
  • Loading branch information
jeremyschulman committed May 14, 2014
2 parents 6e01b92 + 8110d3e commit 1421ce6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/jnpr/junos/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def __repr__(self):
self.__class__.__name__,
self.dev.hostname )

__str__ = __repr__

class ProbeError(ConnectError):
"""
Generated if auto_probe is enabled and the probe action fails
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
setup(
name="junos-eznc",
namespace_packages=['jnpr'],
version="0.1.3.onbox",
version="0.1.3",
author="Jeremy Schulman",
author_email="jschulman@juniper.net",
description=("Junos 'EZ' automation for non-programmers"),
Expand Down

0 comments on commit 1421ce6

Please sign in to comment.