Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples/resource_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def demo_users(client):

user = client.users.create(
metadata={},
spec={"username": "demo_user", "password":"demouserpassword"},
spec={"username": "demo_user", "password": "demouserpassword"},
)
print_cluster_resource(user)

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ install_requires =

[options.extras_require]
dev =
black
black >= 21.4b2
flake8
mypy
pytest >= 6, < 7
Expand Down
8 changes: 4 additions & 4 deletions src/sensu_go/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@


class SensuError(Exception):
""" Base exception for the sensu-go package. """
"""Base exception for the sensu-go package."""


class HTTPError(SensuError):
""" Error that indicates a problem with backend connection. """
"""Error that indicates a problem with backend connection."""


class ResponseError(SensuError):
""" Error that indicates a problem with backend's response. """
"""Error that indicates a problem with backend's response."""

def __init__(self, msg: str, url: str, status: int, text: str) -> None:
self.url = url
Expand All @@ -23,4 +23,4 @@ def __init__(self, msg: str, url: str, status: int, text: str) -> None:


class AuthError(ResponseError):
""" Error that indicates a problem with credentials. """
"""Error that indicates a problem with credentials."""