diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-09-12 20:41:31 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 20:41:31 +1000 |
commit | 02aa41809bd48cc1dd02da3634f02f5eae71b41c (patch) | |
tree | 71cd7d6ae4983d2cff2f2f25fa82b088d746871b /synapse/rest/client/v1/pusher.py | |
parent | Port crypto/ to Python 3 (#3822) (diff) | |
download | synapse-02aa41809bd48cc1dd02da3634f02f5eae71b41c.tar.xz |
Port rest/ to Python 3 (#3823)
Diffstat (limited to 'synapse/rest/client/v1/pusher.py')
-rw-r--r-- | synapse/rest/client/v1/pusher.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v1/pusher.py b/synapse/rest/client/v1/pusher.py index 182a68b1e2..b84f0260f2 100644 --- a/synapse/rest/client/v1/pusher.py +++ b/synapse/rest/client/v1/pusher.py @@ -59,7 +59,7 @@ class PushersRestServlet(ClientV1RestServlet): ] for p in pushers: - for k, v in p.items(): + for k, v in list(p.items()): if k not in allowed_keys: del p[k] @@ -126,7 +126,7 @@ class PushersSetRestServlet(ClientV1RestServlet): profile_tag=content.get('profile_tag', ""), ) except PusherConfigException as pce: - raise SynapseError(400, "Config Error: " + pce.message, + raise SynapseError(400, "Config Error: " + str(pce), errcode=Codes.MISSING_PARAM) self.notifier.on_new_replication_data() |