From 4ba0469cf6963a6ff7882955ed05bff5513e962e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 23 Aug 2020 23:53:42 +0200 Subject: [PATCH] Fix linker commands on Royalnet 5.11 --- royalpack/commands/abstract/linker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalpack/commands/abstract/linker.py b/royalpack/commands/abstract/linker.py index 7719ea66..20303b82 100644 --- a/royalpack/commands/abstract/linker.py +++ b/royalpack/commands/abstract/linker.py @@ -21,8 +21,8 @@ class LinkerCommand(rc.Command, metaclass=abc.ABCMeta): self.updater_task = self.loop.create_task(self.run_updater()) async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None: - author = await data.get_author(error_if_none=True) async with data.session_acm() as session: + author = await data.find_author(session=session, required=True) if len(args) == 0: message = [] for obj in await self.get_updatables_of_user(session=session, user=author):