Skip to content

Commit

Permalink
Update charm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
weiiwang01 committed Aug 23, 2024
1 parent 3246734 commit 796c752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _on_create_profile_action(self, event: ops.ActionEvent) -> None:
combine_stderr=True,
)
try:
process.wait()
process.wait_output()
except ops.pebble.ExecError as exc:
event.fail(typing.cast(str, exc.stdout))
return
Expand All @@ -120,7 +120,7 @@ def _on_delete_profile_action(self, event: ops.ActionEvent) -> None:
combine_stderr=True,
)
try:
process.wait()
process.wait_output()
except ops.pebble.ExecError as exc:
event.fail(typing.cast(str, exc.stdout))
return
Expand Down

0 comments on commit 796c752

Please sign in to comment.