Skip to content

Commit

Permalink
Update src/charm.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mehdi Bendriss <[email protected]>
  • Loading branch information
MiaAltieri and Mehdi-Bendriss authored Aug 27, 2024
1 parent 10dd2ed commit 431894b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,7 @@ def _on_stop(self, event) -> None:
def _on_update_status(self, event: UpdateStatusEvent):
# user-made mistakes might result in other incorrect statues. Prioritise informing users of
# their mistake.
invalid_integration_status = self.status.get_invalid_integration_status()
if invalid_integration_status:
if invalid_integration_status := self.status.get_invalid_integration_status():
self.status.set_and_share_status(invalid_integration_status)
return

Expand Down

0 comments on commit 431894b

Please sign in to comment.