This pull request fixes a bug that was to be found in the buildbot-gitea plugin. https://github.com/lab132/buildbot-gitea/pull/28