forked from MirrorHub/synapse
fix isinstance
This commit is contained in:
parent
c3b7a45e84
commit
b78bae2d51
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ class MessageHandler(BaseHandler):
|
||||||
|
|
||||||
spam_error = self.spam_checker.check_event_for_spam(event)
|
spam_error = self.spam_checker.check_event_for_spam(event)
|
||||||
if spam_error:
|
if spam_error:
|
||||||
if not isinstance(spam_error, (str, basestring)):
|
if not isinstance(spam_error, basestring):
|
||||||
spam_error = "Spam is not permitted here"
|
spam_error = "Spam is not permitted here"
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
403, spam_error, Codes.FORBIDDEN
|
403, spam_error, Codes.FORBIDDEN
|
||||||
|
|
Loading…
Reference in a new issue