Skip to content

Commit

Permalink
Merge pull request #1036 from Aflynn50/bugfix-NoneType-master
Browse files Browse the repository at this point in the history
#1036

#### Description
Merge up #1035
  • Loading branch information
jujubot authored Mar 25, 2024
2 parents 959d7f0 + d13bc8e commit 7aa83cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ pytestdebug.log
.vscode/
deb_dist
*.tar.gz
.idea/
3 changes: 2 additions & 1 deletion juju/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion juju/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7aa83cb

Please sign in to comment.