Skip to content

Commit

Permalink
Merge pull request #425 from jkloetzke/fix-py39
Browse files Browse the repository at this point in the history
builder: catch the correct CancelledError
  • Loading branch information
jkloetzke committed Jul 21, 2021
2 parents 6288112 + f7afc15 commit 171acf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pym/bob/cmds/build/builder.py
Expand Up @@ -744,7 +744,7 @@ async def __taskWrapper(self, coro, trackingKey=None, tracker=None,
raise CancelBuildException
except CancelBuildException:
raise
except concurrent.futures.CancelledError:
except asyncio.CancelledError:
raise CancelBuildException
except Exception as e:
self.__buildErrors.append(e)
Expand Down Expand Up @@ -804,7 +804,7 @@ async def dispatcher():
loop.run_until_complete(j)
except CancelBuildException:
pass
except concurrent.futures.CancelledError:
except asyncio.CancelledError:
pass
finally:
try:
Expand Down Expand Up @@ -1668,7 +1668,7 @@ async def __yieldJobWhile(self, coro, ignoreExecutionStop = False):
try:
await self.__runners.acquire()
acquired = True
except concurrent.futures.CancelledError:
except asyncio.CancelledError:
pass
if not self.__running and not ignoreExecutionStop: raise CancelBuildException
return ret
Expand Down

0 comments on commit 171acf3

Please sign in to comment.