diff --git a/.gitignore b/.gitignore index 76f6db4cc..f979a2fb0 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ pytestdebug.log .vscode/ deb_dist *.tar.gz +.idea/ diff --git a/juju/controller.py b/juju/controller.py index 97e9963f0..c3286c81f 100644 --- a/juju/controller.py +++ b/juju/controller.py @@ -854,7 +854,8 @@ async def _watcher(stop_event): try: results = await utils.run_with_interrupt( watcher.Next(), - stop_event) + stop_event, + log=log) except JujuAPIError as e: if 'watcher was stopped' not in str(e): raise diff --git a/juju/model.py b/juju/model.py index ccfd78588..1575381bb 100644 --- a/juju/model.py +++ b/juju/model.py @@ -1204,7 +1204,8 @@ async def _all_watcher(): try: results = await utils.run_with_interrupt( allwatcher.Next(), - self._watch_stopping) + self._watch_stopping, + log=log) except JujuAPIError as e: if 'watcher was stopped' not in str(e): raise