diff options
author | David Baker <dave@matrix.org> | 2017-10-11 14:49:09 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2017-10-11 14:49:09 +0100 |
commit | b78bae2d51bac7e1f75365d85cd67402adb5f408 (patch) | |
tree | ea3c8961f3771b0d5bde390634b713137e4b1200 /synapse/handlers | |
parent | Allow error strings from spam checker (diff) | |
download | synapse-b78bae2d51bac7e1f75365d85cd67402adb5f408.tar.xz |
fix isinstance
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/message.py | 2 |
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 |