summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-10-11 14:49:09 +0100
committerDavid Baker <dave@matrix.org>2017-10-11 14:49:09 +0100
commitb78bae2d51bac7e1f75365d85cd67402adb5f408 (patch)
treeea3c8961f3771b0d5bde390634b713137e4b1200 /synapse/handlers/message.py
parentAllow error strings from spam checker (diff)
downloadsynapse-b78bae2d51bac7e1f75365d85cd67402adb5f408.tar.xz
fix isinstance
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 06672df3bc..28792788d9 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -328,7 +328,7 @@ class MessageHandler(BaseHandler):
 
         spam_error = self.spam_checker.check_event_for_spam(event)
         if spam_error:
-            if not isinstance(spam_error, (str, basestring)):
+            if not isinstance(spam_error, basestring):
                 spam_error = "Spam is not permitted here"
             raise SynapseError(
                 403, spam_error, Codes.FORBIDDEN