Skip to content

Commit

Permalink
Whoops, appease mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Nov 5, 2021
1 parent 0d202e5 commit ffbbc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sydent/http/servlets/registerservlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def render_POST(self, request: Request) -> JsonDict:
"error": "matrix_server_name must be a valid Matrix server name (IP address or hostname)",
}

def federation_request_problem(error: str):
def federation_request_problem(error: str) -> Dict[str, str]:
logger.warning(error)
request.setResponseCode(HTTPStatus.INTERNAL_SERVER_ERROR)
return {
Expand Down

0 comments on commit ffbbc6c

Please sign in to comment.