1
0

adapt to aiorpcx 0.8.1: rm report_crash kwarg from group.spawn

This commit is contained in:
SomberNight
2018-09-12 22:09:59 +02:00
parent a3fb865db0
commit 2e18e3c62b

View File

@@ -870,9 +870,8 @@ def make_aiohttp_session(proxy):
class SilentTaskGroup(TaskGroup): class SilentTaskGroup(TaskGroup):
def spawn(self, *args, report_crash=None, **kwargs): def spawn(self, *args, **kwargs):
# don't complain if group is already closed. # don't complain if group is already closed.
if self._closed: if self._closed:
raise asyncio.CancelledError() raise asyncio.CancelledError()
# ignore value of report_crash, and force it to False return super().spawn(*args, **kwargs)
return super().spawn(*args, **kwargs, report_crash=False)