Skip to content

Can't get group from regex match #10

@emmiegit

Description

@emmiegit
Oct 24 21:47:25 Lilith pypy3[3692]: Traceback (most recent call last):
Oct 24 21:47:25 Lilith pypy3[3692]:   File "/opt/pypy3.5/site-packages/discord/client.py", line 225, in _run_event
Oct 24 21:47:25 Lilith pypy3[3692]:     await coro(*args, **kwargs)
Oct 24 21:47:25 Lilith pypy3[3692]:   File "/home/mallard/repo/mallard/client.py", line 134, in on_message
Oct 24 21:47:25 Lilith pypy3[3692]:     query = self._clean(message)
Oct 24 21:47:25 Lilith pypy3[3692]:   File "/home/mallard/repo/mallard/client.py", line 123, in _clean
Oct 24 21:47:25 Lilith pypy3[3692]:     if int(match[1]) == self.user.id:
Oct 24 21:47:25 Lilith pypy3[3692]: TypeError: '_sre.SRE_Match' object is not subscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions