mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
adapt to aiorpcx 0.8.1: rm report_crash kwarg from group.spawn
This commit is contained in:
parent
a3fb865db0
commit
2e18e3c62b
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue