Skip to content

Commit

Permalink
pylint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Dec 16, 2022
1 parent 388a885 commit 2646065
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qubes/api/internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ async def suspend_pre(self):
done, _ = await asyncio.wait(
[asyncio.wait_for(p.wait(), qubes.config.suspend_timeout)
for p in processes])
for c in done:
for task in done:
try:
c.result()
task.result()
except asyncio.TimeoutError:
self.app.log.warning(
"some qube timed out after %d seconds on %s call",
Expand Down Expand Up @@ -249,9 +249,9 @@ async def suspend_post(self):
done, _ = await asyncio.wait(
[asyncio.wait_for(p.wait(), qubes.config.suspend_timeout)
for p in processes])
for c in done:
for task in done:
try:
c.result()
task.result()
except asyncio.TimeoutError:
self.app.log.warning(
"some qube timed out after %d seconds on %s call",
Expand Down

0 comments on commit 2646065

Please sign in to comment.