Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Exception when handling custom mentions #213

Description

@emilyalbini
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python2.7/dist-packages/highfive/app.py", line 45, in new_pr
    return handler.run(flask.request.headers['X-GitHub-Event'])
  File "/usr/local/lib/python2.7/dist-packages/highfive/newpr.py", line 71, in run
    self.new_pr()
  File "/usr/local/lib/python2.7/dist-packages/highfive/newpr.py", line 377, in new_pr
    author, to_mention
  File "/usr/local/lib/python2.7/dist-packages/highfive/newpr.py", line 133, in set_assignee
    message += "%s\n\ncc %s" % (mention['message'],
KeyError: 'message'

highfive/highfive/newpr.py

Lines 133 to 134 in 748c035

message += "%s\n\ncc %s" % (mention['message'],
','.join([x for x in mention['reviewers'] if x != user]))

@GuillaumeGomez

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions