diff --git a/juju/loop.py b/juju/loop.py index bed54a11d..d9d2e8f8a 100644 --- a/juju/loop.py +++ b/juju/loop.py @@ -8,5 +8,5 @@ warnings.warn( "juju.loop module is being deprecated by 3.0, use juju.jasyncio instead", DeprecationWarning, - stacklevel=1, + stacklevel=2, ) diff --git a/juju/model.py b/juju/model.py index 207eaf808..12f9edced 100644 --- a/juju/model.py +++ b/juju/model.py @@ -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"