mirror of https://github.com/zulip/zulip.git
subject_links: Remove useless RealmFilter.DoesNotExist case.
This commit is contained in:
parent
68fba3579d
commit
e89730dc8f
|
@ -1025,7 +1025,6 @@ def subject_links(domain, subject):
|
|||
from zerver.models import get_realm, RealmFilter, realm_filters_for_domain
|
||||
matches = [] # type: List[text_type]
|
||||
|
||||
try:
|
||||
realm_filters = realm_filters_for_domain(domain)
|
||||
|
||||
for realm_filter in realm_filters:
|
||||
|
@ -1033,8 +1032,6 @@ def subject_links(domain, subject):
|
|||
for m in re.finditer(pattern, subject):
|
||||
matches += [realm_filter[1] % m.groupdict()]
|
||||
return matches
|
||||
except RealmFilter.DoesNotExist:
|
||||
return matches
|
||||
|
||||
def make_realm_filters(domain, filters):
|
||||
global md_engines, realm_filter_data
|
||||
|
|
Loading…
Reference in New Issue