diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-07-21 09:47:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 09:47:56 -0400 |
commit | 5db118626bebb9ce3913758282787d47cd8f375e (patch) | |
tree | 9515e33f8e3a319f2e76ca88094654d946304979 /synapse/rest/client/v2_alpha/keys.py | |
parent | Switch to `chunk` events so we can auth via power_levels (MSC2716) (#10432) (diff) | |
download | synapse-5db118626bebb9ce3913758282787d47cd8f375e.tar.xz |
Add a return type to parse_string. (#10438)
And set the required attribute in a few places which will error if a parameter is not provided.
Diffstat (limited to 'synapse/rest/client/v2_alpha/keys.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/keys.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/keys.py b/synapse/rest/client/v2_alpha/keys.py index 33cf8de186..d0d9d30d40 100644 --- a/synapse/rest/client/v2_alpha/keys.py +++ b/synapse/rest/client/v2_alpha/keys.py @@ -194,7 +194,7 @@ class KeyChangesServlet(RestServlet): async def on_GET(self, request): requester = await self.auth.get_user_by_req(request, allow_guest=True) - from_token_string = parse_string(request, "from") + from_token_string = parse_string(request, "from", required=True) set_tag("from", from_token_string) # We want to enforce they do pass us one, but we ignore it and return |