summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2018-10-12 11:26:18 +0100
committerDavid Baker <dave@matrix.org>2018-10-12 11:26:18 +0100
commit83e72bb2f0c6ef282190a378941c856afbb33c16 (patch)
tree9cfdc6f169223d620c279122734d730b8d1e2aa8 /synapse/api
parentFix mergefail (diff)
downloadsynapse-83e72bb2f0c6ef282190a378941c856afbb33c16.tar.xz
PR feedback pt. 1
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/errors.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py
index 0a6e78711f..48b903374d 100644
--- a/synapse/api/errors.py
+++ b/synapse/api/errors.py
@@ -348,14 +348,6 @@ class IncompatibleRoomVersionError(SynapseError):
         )
 
 
-def cs_exception(exception):
-    if isinstance(exception, CodeMessageException):
-        return exception.error_dict()
-    else:
-        logger.error("Unknown exception type: %s", type(exception))
-        return {}
-
-
 def cs_error(msg, code=Codes.UNKNOWN, **kwargs):
     """ Utility method for constructing an error response for client-server
     interactions.