Skip to content

Commit

Permalink
Merge pull request #12 from schubergphilis/feature/add_InvalidPath_ex…
Browse files Browse the repository at this point in the history
…ception

added InvalidPath exception
  • Loading branch information
costastf committed Oct 19, 2020
2 parents 064d18e + a64e39a commit b3589da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hashivaultlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"""
from ._version import __version__
from .hashivaultlib import Vault
from .hashivaultlibexceptions import InvalidPath

__author__ = '''Costas Tyfoxylos <ctyfoxylos@schubergphilis.com>'''
__docformat__ = '''google'''
Expand All @@ -48,3 +49,4 @@

# assert objects
assert Vault
assert InvalidPath
2 changes: 1 addition & 1 deletion hashivaultlib/hashivaultlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def __new__(cls, vault_instance, data):
else:
token = Token(vault_instance, data)
except (AttributeError, TypeError):
vault_instance._logger.error('Response for token seems broken, got :%s', data)
vault_instance._logger.error('Response for token seems broken, got :%s', data) # pylint: disable=protected-access
return token


Expand Down
2 changes: 2 additions & 0 deletions hashivaultlib/hashivaultlibexceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@
__maintainer__ = '''Costas Tyfoxylos'''
__email__ = '''<ctyfoxylos@schubergphilis.com>'''
__status__ = '''Development''' # "Prototype", "Development", "Production".

from hvac.exceptions import InvalidPath # noqa:F401

0 comments on commit b3589da

Please sign in to comment.