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
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

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