Skip to content

Commit

Permalink
Bump up the stack level.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Sep 17, 2024
1 parent d9b8bd2 commit 9840d91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ops/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def __init__(self, handle: 'Handle'):
warnings.warn(
'pre-series-upgrade events will not be emitted from Juju 4.0 onwards',
DeprecationWarning,
stacklevel=2,
stacklevel=3,
)
super().__init__(handle)

Expand All @@ -388,7 +388,7 @@ def __init__(self, handle: 'Handle'):
warnings.warn(
'post-series-upgrade events will not be emitted from Juju 4.0 onwards',
DeprecationWarning,
stacklevel=2,
stacklevel=3,
)
super().__init__(handle)

Expand Down Expand Up @@ -434,7 +434,7 @@ def __init__(self, handle: 'Handle'):
'collect-metrics events will not be emitted from Juju 4.0 onwards - '
'consider using the Canonical Observability Stack',
DeprecationWarning,
stacklevel=2,
stacklevel=3,
)
super().__init__(handle)

Expand Down

0 comments on commit 9840d91

Please sign in to comment.