Skip to content

Commit

Permalink
linting here, linting there, linting everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Abuelodelanada committed May 1, 2024
1 parent c71a652 commit 2d93422
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/charms/observability_libs/v1/cert_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ def __init__(self, charm: CharmBase, relation_name: str, nest_under: str = "secr

def _check_ready(self):
try:
self.charm.model.get_relation(self.relation_name).data[self.charm.unit] # pyright: ignore
self.charm.model.get_relation(self.relation_name).data[ # pyright: ignore
self.charm.unit
]
except Exception as e:
# if something goes wrong here, the peer-backed vault is not ready to operate
# it can be because you are trying to use it too soon, i.e. before the peer
Expand Down

0 comments on commit 2d93422

Please sign in to comment.