mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 17:56:19 +03:00
lint
This commit is contained in:
parent
ccddd9b9a8
commit
e906115472
1 changed files with 3 additions and 1 deletions
|
@ -569,7 +569,9 @@ class RoomEventServlet(RestServlet):
|
|||
def on_GET(self, request, room_id, event_id):
|
||||
requester = yield self.auth.get_user_by_req(request, allow_guest=True)
|
||||
try:
|
||||
event = yield self.event_handler.get_event(requester.user, room_id, event_id)
|
||||
event = yield self.event_handler.get_event(
|
||||
requester.user, room_id, event_id
|
||||
)
|
||||
except AuthError as e:
|
||||
# This endpoint is supposed to return a 404 when the requester does
|
||||
# not have permission to access the event
|
||||
|
|
Loading…
Reference in a new issue