mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 20:54:50 -04:00
Fix pep8 warnings
This commit is contained in:
parent
b4b492824e
commit
7d709542ca
35 changed files with 179 additions and 135 deletions
|
@ -54,7 +54,7 @@ class SynapseError(CodeMessageException):
|
|||
"""Constructs a synapse error.
|
||||
|
||||
Args:
|
||||
code (int): The integer error code (typically an HTTP response code)
|
||||
code (int): The integer error code (an HTTP response code)
|
||||
msg (str): The human-readable error message.
|
||||
err (str): The error code e.g 'M_FORBIDDEN'
|
||||
"""
|
||||
|
@ -67,6 +67,7 @@ class SynapseError(CodeMessageException):
|
|||
self.errcode,
|
||||
)
|
||||
|
||||
|
||||
class RoomError(SynapseError):
|
||||
"""An error raised when a room event fails."""
|
||||
pass
|
||||
|
@ -117,6 +118,7 @@ class InvalidCaptchaError(SynapseError):
|
|||
error_url=self.error_url,
|
||||
)
|
||||
|
||||
|
||||
class LimitExceededError(SynapseError):
|
||||
"""A client has sent too many requests and is being throttled.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue