diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-07-17 20:43:18 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-17 20:43:18 +1000 |
commit | bc006b3c9d2a9982bc834ff5d1ec1768c85f907a (patch) | |
tree | 748864a2aea695a58739c381fb9785a739845972 /synapse/rest/client/v2_alpha/register.py | |
parent | Merge pull request #3544 from matrix-org/erikj/fixup_stream_cache (diff) | |
download | synapse-bc006b3c9d2a9982bc834ff5d1ec1768c85f907a.tar.xz |
Refactor REST API tests to use explicit reactors (#3351)
Diffstat (limited to 'synapse/rest/client/v2_alpha/register.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/register.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py index 1918897f68..d6cf915d86 100644 --- a/synapse/rest/client/v2_alpha/register.py +++ b/synapse/rest/client/v2_alpha/register.py @@ -643,7 +643,7 @@ class RegisterRestServlet(RestServlet): @defer.inlineCallbacks def _do_guest_registration(self, params): if not self.hs.config.allow_guest_access: - defer.returnValue((403, "Guest access is disabled")) + raise SynapseError(403, "Guest access is disabled") user_id, _ = yield self.registration_handler.register( generate_token=False, make_guest=True |