Skip to content
Snippets Groups Projects
Commit 2a793a6c authored by Kegan Dougal's avatar Kegan Dougal
Browse files

Default error code BAD_PAGINATION for EventStreamErrors

parent d253a355
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,10 @@ class AuthError(SynapseError):
class EventStreamError(SynapseError):
"""An error raised when there a problem with the event stream."""
pass
def __init__(self, *args, **kwargs):
if "errcode" not in kwargs:
kwargs["errcode"] = Codes.BAD_PAGINATION
super(EventStreamError, self).__init__(*args, **kwargs)
class LoginError(SynapseError):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment