diff options
author | Erik Johnston <erikj@jki.re> | 2018-08-24 17:15:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-24 17:15:32 +0100 |
commit | 9fbaed325f7e3ed4edff25636043b885b1cf388d (patch) | |
tree | 5eb84f8afc267ba3af4199e3da3f9a4d17bbdb0b /synapse/api/errors.py | |
parent | Merge pull request #3756 from matrix-org/erikj/fix_tags_server_notices (diff) | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/admin_contact (diff) | |
download | synapse-9fbaed325f7e3ed4edff25636043b885b1cf388d.tar.xz |
Merge pull request #3758 from matrix-org/erikj/admin_contact hhs-3
Change admin_uri to admin_contact in config and errors
Diffstat (limited to 'synapse/api/errors.py')
-rw-r--r-- | synapse/api/errors.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py index c4ddba9889..2e7f98404d 100644 --- a/synapse/api/errors.py +++ b/synapse/api/errors.py @@ -239,10 +239,10 @@ class ResourceLimitError(SynapseError): def __init__( self, code, msg, errcode=Codes.RESOURCE_LIMIT_EXCEEDED, - admin_uri=None, + admin_contact=None, limit_type=None, ): - self.admin_uri = admin_uri + self.admin_contact = admin_contact self.limit_type = limit_type super(ResourceLimitError, self).__init__(code, msg, errcode=errcode) @@ -250,7 +250,7 @@ class ResourceLimitError(SynapseError): return cs_error( self.msg, self.errcode, - admin_uri=self.admin_uri, + admin_contact=self.admin_contact, limit_type=self.limit_type ) |