mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
oops
This commit is contained in:
parent
8be07e0db4
commit
c2afc2ad90
@ -147,7 +147,7 @@ class Pusher(object):
|
|||||||
logger.warn("event_match condition with no pattern")
|
logger.warn("event_match condition with no pattern")
|
||||||
return False
|
return False
|
||||||
# XXX: optimisation: cache our pattern regexps
|
# XXX: optimisation: cache our pattern regexps
|
||||||
r = r'\b%s\b' % _glob_to_regexp(condition['pattern'])
|
r = r'\b%s\b' % self._glob_to_regexp(condition['pattern'])
|
||||||
val = _value_for_dotted_key(condition['key'], ev)
|
val = _value_for_dotted_key(condition['key'], ev)
|
||||||
if val is None:
|
if val is None:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user