Skip to content

Commit 7aa83cb

Browse files
authored
Merge pull request #1036 from Aflynn50/bugfix-NoneType-master
#1036 #### Description Merge up #1035
2 parents 959d7f0 + d13bc8e commit 7aa83cb

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ pytestdebug.log
1515
.vscode/
1616
deb_dist
1717
*.tar.gz
18+
.idea/

juju/controller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,8 @@ async def _watcher(stop_event):
854854
try:
855855
results = await utils.run_with_interrupt(
856856
watcher.Next(),
857-
stop_event)
857+
stop_event,
858+
log=log)
858859
except JujuAPIError as e:
859860
if 'watcher was stopped' not in str(e):
860861
raise

juju/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,8 @@ async def _all_watcher():
12041204
try:
12051205
results = await utils.run_with_interrupt(
12061206
allwatcher.Next(),
1207-
self._watch_stopping)
1207+
self._watch_stopping,
1208+
log=log)
12081209
except JujuAPIError as e:
12091210
if 'watcher was stopped' not in str(e):
12101211
raise

0 commit comments

Comments
 (0)