zerver/webhooks/github/view: Sweep force_str.

This commit is contained in:
Rhea Parekh 2017-12-22 18:33:18 +05:30 committed by showell
parent 99cb001345
commit bebd8df728
1 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,6 @@ from zerver.decorator import authenticated_api_view, \
flexible_boolean, to_non_negative_int
from zerver.lib.request import REQ, has_request_variables
from zerver.lib.response import json_success
from zerver.lib.str_utils import force_str
from zerver.lib.validator import check_dict
from zerver.lib.webhooks.git import SUBJECT_WITH_BRANCH_TEMPLATE, \
SUBJECT_WITH_PR_OR_ISSUE_INFO_TEMPLATE, \
@ -189,7 +188,7 @@ def api_github_v2(user_profile, event, payload, branches, default_stream,
)
else:
raise UnknownEventType(force_str(u'Event %s is unknown and cannot be handled' % (event,)))
raise UnknownEventType(u'Event %s is unknown and cannot be handled' % (event,))
return target_stream, subject, content