summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-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