mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:54:47 -04:00
Fix develop because I broke it :( (#3535)
This commit is contained in:
parent
8532953c04
commit
8a4f05fefb
3 changed files with 5 additions and 2 deletions
|
@ -78,6 +78,9 @@ class PaginationConfig(object):
|
|||
|
||||
limit = parse_integer(request, "limit", default=default_limit)
|
||||
|
||||
if limit and limit < 0:
|
||||
raise SynapseError(400, "Limit must be 0 or above")
|
||||
|
||||
try:
|
||||
return PaginationConfig(from_tok, to_tok, direction, limit)
|
||||
except Exception:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue