Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Exception in MessageEvent reply() #3

Closed
subversion23 opened this issue Nov 29, 2019 · 1 comment
Closed

Exception in MessageEvent reply() #3

subversion23 opened this issue Nov 29, 2019 · 1 comment

Comments

@subversion23
Copy link

Last Maubot update seems to have changed the reply() params.
I got this error:

Traceback (most recent call last):
  File "/home/pi/mxbots/lib/python3.7/site-packages/mautrix/client/client.py", line 188, in dispatch_manual_event
    await handler(data)
  File "/home/pi/mxbots/lib/python3.7/site-packages/maubot/handlers/command.py", line 105, in __call__
    ok, res = await self.__call_subcommand__(evt, call_args, remaining_val)
  File "/home/pi/mxbots/lib/python3.7/site-packages/maubot/handlers/command.py", line 122, in __call_subcommand__
    remaining_val=remaining_val)
  File "/home/pi/mxbots/lib/python3.7/site-packages/maubot/handlers/command.py", line 113, in __call__
    return await self.__mb_func__(self.__bound_instance__, evt, **call_args)
  File "/home/pi/mxbots/plugins/casavant.tom.poll-v1.0.0.mbp/poll.py", line 85, in handler
    await evt.reply(response, html_in_markdown=True)
TypeError: reply() got an unexpected keyword argument 'html_in_markdown'

from maubot/matrix.py repo:

def reply(self, content: Union[str, MessageEventContent],
		  event_type: EventType = EventType.ROOM_MESSAGE, markdown: bool = True,
		  allow_html: bool = False) -> Awaitable[EventID]:
	return self.respond(content, event_type, markdown=markdown, reply=True,
						allow_html=allow_html)

commit which made the changes:
maubot/maubot@1d03fd8#diff-ba5078c6c9a3d6373e6d25edb3a77bca

@bertiebaggio
Copy link
Contributor

I've opened a PR for this.

#4

The release will also need to be updated. I recompiled the plugin locally with mbc build from the main maubot repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants