0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-18 07:52:56 +01:00

fix isinstance

This commit is contained in:
David Baker 2017-10-11 14:49:09 +01:00
parent c3b7a45e84
commit b78bae2d51

View file

@ -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