Browse Source

Update parser.py

Removing getattr, adding this setting to misago.conf.defaults
musindmitriy 7 years ago
parent
commit
1b7943e85e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/markup/parser.py

+ 1 - 1
misago/markup/parser.py

@@ -154,7 +154,7 @@ def md_factory(allow_links=True, allow_images=True, allow_blocks=True):
 def linkify_paragraphs(result):
     result['parsed_text'] = bleach.linkify(
         result['parsed_text'],
-        callbacks=getattr(settings, "MISAGO_BLEACH_CALLBACKS", []),
+        callbacks=settings.MISAGO_BLEACH_CALLBACKS,
         skip_tags=['a', 'code', 'pre'],
         parse_email=True,
     )