@@ -4457,7 +4457,7 @@ async def callPeerApi(self, todo, timeout=None):
4457
4457
Yield responses from our peers via the AHA gather call API.
4458
4458
'''
4459
4459
proxy = await self .getAhaProxy (timeout = timeout , feats = (feat_aha_callpeers_v1 ,))
4460
- if proxy is None :
4460
+ if proxy is None : # pragma: no cover
4461
4461
return
4462
4462
4463
4463
async for item in proxy .callAhaPeerApi (self .iden , todo , timeout = timeout , skiprun = self .runid ):
@@ -4468,7 +4468,7 @@ async def callPeerGenr(self, todo, timeout=None):
4468
4468
Yield responses from invoking a generator via the AHA gather API.
4469
4469
'''
4470
4470
proxy = await self .getAhaProxy (timeout = timeout , feats = (feat_aha_callpeers_v1 ,))
4471
- if proxy is None :
4471
+ if proxy is None : # pragma: no cover
4472
4472
return
4473
4473
4474
4474
async for item in proxy .callAhaPeerGenr (self .iden , todo , timeout = timeout , skiprun = self .runid ):
@@ -4490,7 +4490,7 @@ async def getTasks(self, peers=True, timeout=None):
4490
4490
# we can ignore the yielded aha names because we embed it in the task
4491
4491
async for (ahasvc , (ok , retn )) in self .callPeerGenr (todo , timeout = timeout ):
4492
4492
4493
- if not ok :
4493
+ if not ok : # pragma: no cover
4494
4494
logger .warning (f'getTasks() on { ahasvc } failed: { retn } ' )
4495
4495
continue
4496
4496
@@ -4510,7 +4510,7 @@ async def getTask(self, iden, peers=True, timeout=None):
4510
4510
todo = s_common .todo ('getTask' , iden , peers = False , timeout = timeout )
4511
4511
async for ahasvc , (ok , retn ) in self .callPeerApi (todo , timeout = timeout ):
4512
4512
4513
- if not ok :
4513
+ if not ok : # pragma: no cover
4514
4514
logger .warning (f'getTask() on { ahasvc } failed: { retn } ' )
4515
4515
continue
4516
4516
@@ -4530,7 +4530,7 @@ async def killTask(self, iden, peers=True, timeout=None):
4530
4530
todo = s_common .todo ('killTask' , iden , peers = False , timeout = timeout )
4531
4531
async for ahasvc , (ok , retn ) in self .callPeerApi (todo , timeout = timeout ):
4532
4532
4533
- if not ok :
4533
+ if not ok : # pragma: no cover
4534
4534
logger .warning (f'killTask() on { ahasvc } failed: { retn } ' )
4535
4535
continue
4536
4536
0 commit comments