Skip to content

Commit

Permalink
chore: sensible stacklevel on deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaqq committed Nov 14, 2024
1 parent e3cecc3 commit d8c4688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion juju/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
warnings.warn(
"juju.loop module is being deprecated by 3.0, use juju.jasyncio instead",
DeprecationWarning,
stacklevel=1,
stacklevel=2,
)
2 changes: 1 addition & 1 deletion juju/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2972,7 +2972,7 @@ async def wait_for_idle(
warnings.warn(
"wait_for_active is deprecated; use status",
DeprecationWarning,
stacklevel=1,
stacklevel=2,
)
status = "active"

Expand Down

0 comments on commit d8c4688

Please sign in to comment.