maubot/gitlab

"Index out of range" when trying to add webhook

Closed this issue · 1 comments

Hi there,

I have been trying to add a webhook to the bot after successfully authenticating it,
but I keep getting the same error message:

!gitlab webhook add mygroup/some-repo

...

  File "/data/plugins/xyz.maubot.gitlab-v0.2.0.mbp/gitlab_matrix/util/arguments.py", line 55, in match
    return rest[0], repo
IndexError: string index out of range

Now I don't know python well enough, but is it possible that empty string "" does not have a [0] index?

So the error may come from this line, where "rest" is assigned ""?

Please correct me if I'm wrong :)

8bcfbfa
seems to have done the trick 👍