Skip to content

Commit

Permalink
Add InvalidResponseCatch
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoflorido committed Jan 30, 2024
1 parent a36c2e8 commit 24b296a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charms/k8s/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ def _reconcile(self, _):
self._bootstrap_k8s_snap()
self._enable_components()
self._update_status()
except InvalidResponseError as e:
log.error("Invalid response from K8sd: %s", e)
status.add(ops.WaitingStatus("Waiting for K8sd API."))
except SnapError as e:
log.error("Failed to install k8s snap. Reason: %s", e.message)
status.add(ops.BlockedStatus("Failed to install k8s snap"))
Expand Down

0 comments on commit 24b296a

Please sign in to comment.