Skip to content

Exception if attempting to merge with empty commit message #370

Closed
@jdiez17

Description

@jdiez17
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/jdiez/dev/SIGSERV/sigserv/bot.py", line 58, in main
    process_pr(pr, issue, repo['file'])
  File "/home/jdiez/dev/SIGSERV/sigserv/bot.py", line 39, in process_pr
    pr.merge()
  File "/home/jdiez/dev/SIGSERV/lib/python3.4/site-packages/github3/decorators.py", line 38, in auth_wrapper
    return func(self, *args, **kwargs)
  File "/home/jdiez/dev/SIGSERV/lib/python3.4/site-packages/github3/pulls.py", line 315, in merge
    json = self._json(self._put(url, data=data), 200)
  File "/home/jdiez/dev/SIGSERV/lib/python3.4/site-packages/github3/models.py", line 100, in _json
    if self._boolean(response, status_code, 404) and response.content:
  File "/home/jdiez/dev/SIGSERV/lib/python3.4/site-packages/github3/models.py", line 121, in _boolean
    raise GitHubError(response)
github3.models.GitHubError: 400 Problems parsing JSON

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions